Ravi,

For 1, consumer group is specified in consumer config.

For 2, partitions are divided evenly among consumers in the same group for
consumption. For details, please see the design doc on our website.

For 3, a producer never needs to know consumer groups. A producer always
produces messages to a topic/partition. There are examples in the design
doc too.

Thanks,

Jun

On Mon, Jun 25, 2012 at 7:57 AM, Narala, Ravi <ravi.nar...@level3.com>wrote:

> Hi,
> I have couple of questions regarding the concepts of Consumer group and
> partitions. Here are those ?
>
>
> 1.       When consuming a message how Do I know which consumer group I
> belong to?. Is there a configuration available or do we have to specify it
> at the application level ?
>
> 2.       How do consumer groups work in conjunction with partitions ?
>
> 3.       How do I produce a message to specific group and a partition ?. A
> coding example is greatly appreciated.
>
>
>
> Thanks,
>
> Ravi Narala
> Web Services & Integration
> Level 3 Communications
> 200 Office Galleria Center
> Southfield, MI 48035 US
> p: 248-436-9324
> e: ravi.nar...@level3.com<mailto:ravi.nar...@level3.com>
>
>

Reply via email to