I have an application written on java. I need to run two instances of my application on same couchbase bucket. The problem is that the document ids will be same.
I read that Couchbase Server 7.0 supports Scopes. Can I create 2 scopes and then have each instance connect to Couchbase using different scopes? I would not like to create Collections at this point because that will require a lot of change in my application code. Something like this:
– app_instance_1 will connect using Scope_1 and all documents will be in _default Collection of Scope_1.
– app_instance_2 will connect using Scope_2 and all documents will be in _default Collection of Scope_2.
Thanks in advance.