11 ms·
You can do this in datomic! I made an end-to-end proof of concept of this using datomic and websockets. The client can open a websocket and subscribe to a query
by jtmarmon 7y ago
You can do this in datomic! I made an end-to-end proof of concept of this using datomic and websockets. The client can open a websocket and subscribe to a query and then the server will react to changes in the database and automatically update the model and therefore the UI (no eventing code required).
Demo vid https://v.usetapes.com/85knuAPruB https://v.usetapes.com/85knuAPruB
Longer description in github readme https://github.com/jtmarmon/hackerthreads https://github.com/jtmarmon/hackerthreads
- dustingetz 7y agoAlso see https://github.com/metasoarous/datsync https://github.com/metasoarous/datsync - note that this project stalled out due to technical challenges, though i hear they're stealthily working on it again and coordinating with the Declarative Dataflows project https://github.com/comnik/declarative-dataflow https://github.com/comnik/declarative-dataflow
- dsun180 7y agoI think you have not understood what RxDB is. It is a client side database. It works also when the client is offline. It does not need a stable internet connection over a websocket. Your example is similar to RethinkDB and others. A websocket streaming json.
- kickopotomus 7y agoA more common solution includes using Datascript[1] as the client side DB and then using something like Posh[2] or Datsync[3] to handle query/pull subscription changes. [1]: https://github.com/tonsky/datascript https://github.com/tonsky/datascript [2]: https://github.com/mpdairy/posh https://github.com/mpdairy/posh [3]: https://github.com/metasoarous/datsync https://github.com/metasoarous/datsync