Book excerpt: https://blog.klipse.tech/databook/2020/12/18/occ-do-git.html
DO manages concurrency using a lock free strategy called Optimistic Concurrency Control, that leads to high throughput of queries and mutations
The code snippets are in JavaScript but it is highly influenced by Clojure.