You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by vishnu murali <vi...@gmail.com> on 2020/05/04 08:03:36 UTC
Kafka consumer
Hey Guys,
I am having a topic and in that topic I am having 3000 messages
In my springboot application I want to consume the data using
@KafkaListener() and also one by one because I need to do some tedious
process on that Data it may take some time
So within this time I don't need to consume another data.
After the process is finished only I need to consume the data from the
topic .?
How can I do this?
Any ideas?
Re: Kafka consumer
Posted by vishnu murali <vi...@gmail.com>.
Thanks Chris
But it won't work,I tried that also.
I found solution
That @KafkaListener default behavior it self is to take one by one data
only..
On Thu, May 7, 2020, 11:28 Chris Toomey <ct...@gmail.com> wrote:
> You can set the max.poll.records config. setting to 1 in order to pull down
> and process 1 record at a time.
>
> See https://kafka.apache.org/documentation/#consumerconfigs .
>
> On Mon, May 4, 2020 at 1:04 AM vishnu murali <vi...@gmail.com>
> wrote:
>
> > Hey Guys,
> >
> > I am having a topic and in that topic I am having 3000 messages
> >
> > In my springboot application I want to consume the data using
> > @KafkaListener() and also one by one because I need to do some tedious
> > process on that Data it may take some time
> >
> > So within this time I don't need to consume another data.
> >
> > After the process is finished only I need to consume the data from the
> > topic .?
> >
> > How can I do this?
> >
> > Any ideas?
> >
>
Re: Kafka consumer
Posted by Chris Toomey <ct...@gmail.com>.
You can set the max.poll.records config. setting to 1 in order to pull down
and process 1 record at a time.
See https://kafka.apache.org/documentation/#consumerconfigs .
On Mon, May 4, 2020 at 1:04 AM vishnu murali <vi...@gmail.com>
wrote:
> Hey Guys,
>
> I am having a topic and in that topic I am having 3000 messages
>
> In my springboot application I want to consume the data using
> @KafkaListener() and also one by one because I need to do some tedious
> process on that Data it may take some time
>
> So within this time I don't need to consume another data.
>
> After the process is finished only I need to consume the data from the
> topic .?
>
> How can I do this?
>
> Any ideas?
>