I think setting max.block.ms=0 does what you want.

-Jay

On Sat, May 27, 2017 at 12:40 PM, Abhimanyu Nagrath <
abhimanyunagr...@gmail.com> wrote:

> HI Hans,
>
> What exactly I meant by asynchronous is that when my Kafka broker is down
> and I am trying to produce the message . It is getting stuck till the
> configured max.block.ms and after that further code is executed. What I am
> looking for is that whether the broker is down or not it should not get
> stuck.
>
>
>
> Regards,
> Abhimanyu
>
> On Sat, May 27, 2017 at 10:30 PM, Hans Jespersen <h...@confluent.io>
> wrote:
>
> > The producer is asynchronous (assuming you mean the Java Producer)
> >
> > https://kafka.apache.org/0102/javadoc/index.html?org/apache/
> > kafka/clients/producer/KafkaProducer.html
> >
> > -hans
> >
> > > On May 27, 2017, at 5:15 AM, Abhimanyu Nagrath <
> > abhimanyunagr...@gmail.com> wrote:
> > >
> > > Hi,
> > > I am using Kafka 0.10.2 single node cluster and I want to know
> > > Kafka producer completely asynchronous. So what configuration I need to
> > > change in order to make producer completely asynchronous.
> > >
> > >
> > >
> > > Regards,
> > > Abhimanyu
> >
>

Reply via email to