kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiangjie Qin <j...@linkedin.com.INVALID>
Subject Re: How to achieve Failover or HighAvailable in SimpleConsumer?
Date Mon, 06 Jul 2015 17:20:14 GMT
I guess it is called SimpleConsumer for a reason. Simple consumer is
really simple and does not support any failure recovery. You might need to
implement you own logic, it is probably not trivial though. As a
reference, high level consumer uses Zookeeper ephemeral path to monitor
the liveliness of consumers.
Also, you might want to take a look at KafkaConsumer in the latest trunk,
it is designed to replace most simple consume use cases. If you are going
to implement your own auto recovery logic, maybe it is better to use
KafkaConsumer instead of SimpleConsumer.


Jiangjie (Becket) Qin

On 7/5/15, 7:37 PM, "luo.fucong" <bayinamine@gmail.com> wrote:

>Hi all:
>The failover or re-balancing support seems only exist in High Level
>Consumer. But we have some special considerations that we have to go with
>the SimpleConsumer. I googled the problem but there are no answers.
>When the SimpleConsumer went down(due to some hardware errors or others
>unexpected), what can I do to resume the consuming **automatically**?

View raw message