38 ms·
Can anybody explain how the 2-peer restriction works with web-apps? It's my biggest fear in making the jump.
by stolio 13y ago
Can anybody explain how the 2-peer restriction works with web-apps? It's my biggest fear in making the jump.
- coolsunglasses 13y agoTwo JVM processes, far as I'm aware. In practice, a single peer gets you pretty far, especially if you're a Clojure user.
- stolio 13y agoI guess where I'm getting lost is the terminology - I was under the impression that end-users are peers[0], so I'm worried about maxing out at two users. But if the limit is whatever a transactor can handle then I doubt I'd ever hit it and I might as well commit. I'm looking at using it as part of a Clojure backend, if that matters. [0] - http://docs.datomic.com/javadoc/datomic/Peer.html http://docs.datomic.com/javadoc/datomic/Peer.html edit: grammar
- redinger 13y agoFrom http://docs.datomic.com/architecture.html http://docs.datomic.com/architecture.html "A Peer is a process that manipulates a database using the Datomic Peer library. Any process can be a Peer - from Web server processes that host sites or services, to a daemon, GUI application or command-line tool. The Datomic-specific application code you write runs in your Peer(s)."
- stolio 13y agoOK, thanks. It just clicked. For anybody wondering what clicked: I'd have Datomic running with one peer, and that peer would serve as many end-users as it could handle. If necessary I could add a second peer and double the read-query power. And that's more than enough for my little web-app. Given the nature of Datalog (https://www.youtube.com/watch?v=bAilFQdaiHk https://www.youtube.com/watch?v=bAilFQdaiHk) I'm getting excited.
- coolsunglasses 13y agoDatalog has been revelatory for me and my coworkers.
- deleted 13y ago[deleted]