I'm implementing strong data consistency between two applications, one of which uses Couchbase as its storage.
What is the right way to check if data sent from app1 to app2_with_couchbase is actually persisted to inform app1? Database could be queried periodically to confirm, but there is probably more elegant approach. I'm using a standard Couchbase client for Java.