1

Is CouchbaseQueue API in http://docs.couchbase.com/sdk-api/couchbase-java-client-2.5.5/com/couchbase/client/java/datastructures/collections/CouchbaseQueue.html 1 thread safe? Or can i achieve the similar behavior by Bucket.getAsync().queuePop()? I want to access this async behavior from multiple JVM and JVM’s don’t know about each other. I do not want to go with Kafka path at this moment. Can anyone give some light as what will be the best way to achieve async queue behavior or refer me to appropriate section?

Thanks

yami
  • 871
  • 1
  • 9
  • 14

1 Answers1

2

Yes, according to the documentation on Couchbase.

Instead of maintaining in-memory storage, these implementations are backed by JSON documents stored in Couchbase Server. The implementations are thread-safe and suitable for concurrent use.

theMayer
  • 15,456
  • 7
  • 58
  • 90