Re: [Eventual consitency] Is the uniqness of the _id guaranteed across nodes within a cluster

2020-12-13 Thread Olaf Krueger
Hi guys, wow, thank you so much for your quick replies even if it's sunday!! It really looks like that one way to go is to move the responsibility of _id generation for the booking to whatever other storage engine like redis so that we maybe end-up with something like a _id microservice here.

Re: [Eventual consitency] Is the uniqness of the _id guaranteed across nodes within a cluster

2020-12-13 Thread Robert Newson
_id is indeed unique across the nodes of the cluster but that isn't helpful to your cause, because a document can have multiple, equally valid versions (called "revisions" in couchdb terms). In CouchDB 2.x and 3.x, and with a default "N" value of three, each of the three nodes will accept a

Re: [Eventual consitency] Is the uniqness of the _id guaranteed across nodes within a cluster

2020-12-13 Thread Jan Lehnardt
Hi Olaf, > On 13. Dec 2020, at 11:13, Olaf Krueger wrote: > > Hi again, > > we're working on a booking app. > In order to prevent over booking of a particular slot (A slot can booked only > once), it's crucial to know if a slot is already booked or even not. > > We're using a cluster of 3

[Eventual consitency] Is the uniqness of the _id guaranteed across nodes within a cluster

2020-12-13 Thread Olaf Krueger
Hi again, we're working on a booking app. In order to prevent over booking of a particular slot (A slot can booked only once), it's crucial to know if a slot is already booked or even not. We're using a cluster of 3 CouchDB nodes, so having the eventual consistency issue in mind the question