lexman / tuttle

Make for data
MIT License
20 stars 3 forks source link

Atomicity #5

Open lexman opened 9 years ago

lexman commented 9 years ago

It's hard to provide atomic operations for every resources, like in relational databases. For example, if a tool writes to a file, like unzip, it constructs the file steps by step.

Another approch is to provide an API where you can know if a resource is usable. When a new resource has been produced, when it won't change anymore, the state of this resource could change to available. With this system, it's the client responsability not to use a resource that is not fully availlable yet.

Any other idea to tend towards atomicity is welcome...