Datomic has an interesting feature called the Transaction Report Queue, which allows for a client (or peer) application to monitor changes to a database.
The Clojure code in this repo shows how to use the transaction report queue to monitor transactions, and push changes to a web page using websockets.
Technologies used:
- Clojure and ClojureScript
- Ring with Compojure
- Datomic
- Sente for websocket communication
- Reagent (a ClojureScript interface for Facebook's React library) for rendering the UI
- Install Datomic
lein run
- Open http:https://localhost:3000