Question

I would like to connect to the same database on Cloudant with different applications. Only one of the applications is going to be writing to the database, and the other would be reading only.

Is this okay to do?

Was it helpful?

Solution

Yep! Perfectly OK.

As Kim mentioned, the only thing to worry about with multiple asynchronous connections comes from when different applications / clients try updating the same doc. When this happens, Cloudant will create a conflict, storing both updates so you can sort out which is correct.

Check out Conflict Management in CouchDB for why this occurs and how to deal with it, and the Cloudant docs on conflicts for methods to examine conflicts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top