4 ms·
Horizon is only the "realtime db" portion of Firebase and it's only for Javascript, not Android or iOS. The mobile app realtime network connection tech is espec
by guelo 10y ago
Horizon is only the "realtime db" portion of Firebase and it's only for Javascript, not Android or iOS. The mobile app realtime network connection tech is especially tricky to get right without draining a user's battery by doing things like constantly polling the backend. I have not seen anything from RethinkDB along those lines.
- hiphipjorge 10y ago> by doing things like constantly polling the backend RethinkDB doesn't require polling. It's like their #1 feature and differentiator from other non-sql databases.
- deleted 10y ago[deleted]
- EGreg 10y agoWhat do they do? We use websockets in our realtime platform.
- coffeemug 10y agoThe Horizon client uses websockets to connect to the Horizon server. The Horizon server uses RethinkDB's protocol[1] to connect to the database. [1] http://rethinkdb.com/docs/writing-drivers/ http://rethinkdb.com/docs/writing-drivers/
- guelo 10y agoWebsockets cannot be as efficient as native network management code.
- kuschku 10y ago> is especially tricky to get right without draining a user's battery by doing things like constantly polling the backend One simple solution is giving each state a defined name, and keeping a socket open from mobile. If the connection is restarted, each side can name their current state, and the delta can also be easily synced. Later on, changes can be directly transmitted via the socket. (I am working on something like that currently myself).
- zeeshanm 10y agoHorizon uses push architecture by default so there is no need to pool.
- deleted 10y ago[deleted]
- dmitriz 10y agoI presume you can still use it with any mobile App wrapped as native e.g. via React Native or Ionic.