I am doing a project with riak database and I am accessing it from an erlang application. I know that erlang escapes race conditions on resources by allowing data to be immutable and no data sharing between processes. In my application, I will be doing a lot of read, update and store operations. This will lead to inconsistent objects in my database if performed by concurrent processes with different update data.
Is there anyway to synchronize these operations between concurrent processes? I don't want object siblings to exist in the riak bucket.