Has anyone tried to build a real-time clojurescript (fulcro) app w/ Datomic? All I could find is https://medium.com/adstage-engineering/realtime-apps-with-om-next-and-datomic-470be2c8204b, but it uses tx-report-queue
which isn't supported in Datomic Cloud.
I think the usual advice is to poll tx-range instead
@favila - interesting, do you know why that is? doesn't tx-range only give you previous transactions, and not new transactions as they occur?
If you call tx-range repeatedly, you’re going to get new transactions as they occur (within your polling interval)
Txrange t5000 to nil; that gives you up to say t5050, then call again txrange t5051 to nil, etc
@favila Thanks for the explanation!
@lanejo01 nothing specific. I was curious if there was some datomic specific detail that I didn't know about. Or if users just generally find out easier to model that way. I seems like extremes at both ends could be cumbersome in some context.
@saurabh.sharan1 Can you be more specific about what you mean by "Real-Time"?
Hi @saurabh.sharan1, I found this talk very influential in how I talk about event driven systems. https://www.youtube.com/watch?v=STKCRSUsyP0 It should get you thinking about the different types of problems / solutions. I would actually follow @favila’s recommendation in the earlier thread, if you do, you could implement the "Event Notification" type of Event Driven Architecture. When you are notified of an event changing a given entity that you are subscribed to, re-query the information at that new T so that you are always querying against a consistent T, vs trying to process the deltas right out of the database and building an interpreter in the browser.
How do I list the dependencies used by Datomic Cloud? I want to fix my deps.edn...
Specifically I need to find the version of tools.deps.alpha that has the reader namespace.
The reader namespace was recently removed - the changelog is at https://github.com/clojure/tools.deps.alpha/blob/master/CHANGELOG.md
The reader ns was removed in 0.9.745
Prior was 0.8.709
Thanks @alexmiller!