Fork me on GitHub

Has anyone got any good resources on general AWS stuff that would be applicable to ions? I’d love to read up a bit more from sources other than the docs that anyone would recommend.


I am working on a problem that i've never solved using a database before because I've always had this state locally. Let's say I have a "worker-entity" with a :worker/current-jobs-counter attribute. Whenever I start a job I will pick a worker where current-jobs-counter is below 10, and increment it by 1. Would that include a transaction function in datomic?


You can do this with a transaction function: transaction function essentially have a lock on the entire database so there's no possibility of stale reads or conflicts.


But you may also be able to do it with speculative writes that retry if a conflict was detected. Maybe you can use the builtin cas (check and swap) transaction function:


i guess a transaction function in the cloud becomes a ion


sorry I don't know cloud as well


No worries, I am very thankful for your replies. Made some good progress conceptually 🙂