Hi,
I am new to Couchbase. I want to generate unique Id (preferable number format) to save the document. I am using couchbaseTemplate to generate it with below code
couchbaseTemplate.getCouchbaseClientFactory().getDefaultCollection().binary().increment(“my-id”, IncrementOptions.incrementOptions().initial(1001l).delta(1)).content();
Question: In case of multiple Data Centers there is a chances that both Data centers generate same id. How can I prevent this situation using Spring Boot Data library?