Blocking queue in couchbase

152 views
Skip to first unread message

Chris Dean

unread,
Apr 20, 2013, 5:27:52 PM4/20/13
to Couchbase
Is there a straightforward way to implementing a blocking queue in
Couchbase ?

What I'd like is to setup a queue where any dequeue operations would
block if the queue was empty, and return the element as soon as it was
added to an empty queue. I'm looking to implement a design similar
to the Redis operator called BRPOP.

Even better would be to mimic the semantics of the BRPOPLPUSH (also in
Redis).

Thanks!

Aliaksey Kandratsenka

unread,
Apr 20, 2013, 9:15:29 PM4/20/13
to couc...@googlegroups.com
Unless there's some really inventive way I'm not familiar with, the answer is no.

Not without polling which usually sucks.

Reply all
Reply to author
Forward
0 new messages