You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by pankaj ojha <pa...@gmail.com> on 2014/08/20 17:34:45 UTC

Which is better?

Hi All,

My requirement is to consume data from kafka using consumer.
Which should be better to use?
SimpleConsumer or HighLevel Consumer?

Thanks,
Pankaj Ojha

Re: Which is better?

Posted by pankaj ojha <pa...@gmail.com>.
Thank You Philip for helping me out in this.

Thanks,
Pankaj


On Wed, Aug 20, 2014 at 9:54 PM, Philip O'Toole <
philip.otoole@yahoo.com.invalid> wrote:

> If you have studied the docs yet, you should, as this is a broad question
> which needs background to understand the answer.
>
> But in summary, the high-level Consumer does more for you, and
> importantly, provides balancing between Consumers. The SimpleConsumer does
> less for you, but gives you more control.
>
> A common pattern when first working with Kafka is to develop your systems
> using the HighLevel Consumer and then, once you understand Kafka better,
> move to a SimpleConsumer-based design for more control (if you determine
> you need it -- the HighLevel Consumer is enough for many, if not most,
> people).
>
> Philip
>
>
> -----------------------------------------
> http://www.philipotoole.com
>
>
> On Wednesday, August 20, 2014 8:35 AM, pankaj ojha <pa...@gmail.com>
> wrote:
>
>
>
> Hi All,
>
> My requirement is to consume data from kafka using consumer.
> Which should be better to use?
> SimpleConsumer or HighLevel Consumer?
>
> Thanks,
> Pankaj Ojha
>

Re: Which is better?

Posted by Philip O'Toole <ph...@yahoo.com.INVALID>.
If you have studied the docs yet, you should, as this is a broad question which needs background to understand the answer.

But in summary, the high-level Consumer does more for you, and importantly, provides balancing between Consumers. The SimpleConsumer does less for you, but gives you more control.

A common pattern when first working with Kafka is to develop your systems using the HighLevel Consumer and then, once you understand Kafka better, move to a SimpleConsumer-based design for more control (if you determine you need it -- the HighLevel Consumer is enough for many, if not most, people).

Philip

 
-----------------------------------------
http://www.philipotoole.com 


On Wednesday, August 20, 2014 8:35 AM, pankaj ojha <pa...@gmail.com> wrote:
 


Hi All,

My requirement is to consume data from kafka using consumer.
Which should be better to use?
SimpleConsumer or HighLevel Consumer?

Thanks,
Pankaj Ojha

Re: Which is better?

Posted by Philip O'Toole <ph...@yahoo.com.INVALID>.
If you have studied the docs yet, you should, as this is a broad question which needs background to understand the answer.

But in summary, the high-level Consumer does more for you, and importantly, provides balancing between Consumers. The SimpleConsumer does less for you, but gives you more control.

A common pattern when first working with Kafka is to develop your systems using the HighLevel Consumer and then, once you understand Kafka better, move to a SimpleConsumer-based design for more control (if you determine you need it -- the HighLevel Consumer is enough for many, if not most, people).

Philip

 
-----------------------------------------
http://www.philipotoole.com 


On Wednesday, August 20, 2014 8:35 AM, pankaj ojha <pa...@gmail.com> wrote:
 


Hi All,

My requirement is to consume data from kafka using consumer.
Which should be better to use?
SimpleConsumer or HighLevel Consumer?

Thanks,
Pankaj Ojha