Netflix/curator — Issue #28: distributed queue in curator
Author: Randgalt
Created: 2012-02-10 00:26:55+00:00
State: open

Hi, Mr Zimmerman:

I came across the curator framework based on zookeeper, and got a question on distributed queue recipe in curator. I did not find any specific email group or forum I can post question, so send directly to you, let me know if there is such place to ask.

Basically the zookeeper recipe on queue (http://zookeeper.apache.org/doc/r3.4.2/zookeeperTutorial.html#sc_producerConsumerQueues) sounds like could be multiple producers and multiple consumers and they are not necessarily in same JVM, e.g. a produce and 2 consumers are in 3 different JVM.

I looked the DistributedQueue recipe in curator, it look like

- both producer and consumers must be in same JVM
- Only one consumer can consume message, you cannot have 2 or more consumers.

Is my understanding right ?

Is it possible to use curator distributed queue receipe to get

- multiple producers and multiple consumers
- each of them may live in different process.

Thanks
Jason Zhang