سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top