You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Vince Deters <Vi...@sas.com> on 2016/04/06 16:16:00 UTC
Kafka C/C++ client with consumer group support?
Hello, we have a requirement to run redundant Kafka consumers that consume an identical stream of messages in identical order. For this reason we plan to have these consumers consume from the same topic partition and identify themselves as unique consumer groups. Does any C/C++ Kafka client have this kind of consumer group support built in? Thanks,
Vince
Re: Kafka C/C++ client with consumer group support?
Posted by Magnus Edenhill <ma...@edenhill.se>.
Hi Vince,
librdkafka (master branch) supports >=0.9 balanced consumers groups:
https://github.com/edenhill/librdkafka
As long as you are using different consumer groups each group will receive
the same set of messages.
Example C++ consumer:
https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_consumer_example.cpp#L398
API docs:
http://docs.confluent.io/2.0.1/clients/librdkafka/index.html
/Magnus
2016-04-06 16:16 GMT+02:00 Vince Deters <Vi...@sas.com>:
> Hello, we have a requirement to run redundant Kafka consumers that consume
> an identical stream of messages in identical order. For this reason we plan
> to have these consumers consume from the same topic partition and identify
> themselves as unique consumer groups. Does any C/C++ Kafka client have this
> kind of consumer group support built in? Thanks,
> Vince
>
Re: Kafka C/C++ client with consumer group support?
Posted by Ben Davison <be...@7digital.com>.
Hi Vince,
I think this might help you https://github.com/edenhill/librdkafka (
- High-level balanced KafkaConsumer: supported (requires broker >= 0.9))
Regards,
Ben
On Wed, Apr 6, 2016 at 3:16 PM, Vince Deters <Vi...@sas.com> wrote:
> Hello, we have a requirement to run redundant Kafka consumers that consume
> an identical stream of messages in identical order. For this reason we plan
> to have these consumers consume from the same topic partition and identify
> themselves as unique consumer groups. Does any C/C++ Kafka client have this
> kind of consumer group support built in? Thanks,
> Vince
>
--
This email, including attachments, is private and confidential. If you have
received this email in error please notify the sender and delete it from
your system. Emails are not secure and may contain viruses. No liability
can be accepted for viruses that might be transferred by this email or any
attachment. Any unauthorised copying of this message or unauthorised
distribution and publication of the information contained herein are
prohibited.
7digital Limited. Registered office: 69 Wilson Street, London EC2A 2BB.
Registered in England and Wales. Registered No. 04843573.