orbitdb-archive / ipfs-log

Append-only log CRDT on IPFS
https://orbitdb.github.io/ipfs-log/
MIT License
398 stars 55 forks source link

Supporting atomic and transactional read/writes #354

Open bakhshandeh opened 2 years ago

bakhshandeh commented 2 years ago

Can we implement atomic read/writes? Let's say there is a network with N nodes. One of the nodes saves something on the db({id: unique-id, locked:true}) and run an atomic operation. Other nodes should not be able to run the same operation while the lock is in the db.