You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Achanta Vamsi Subhash <ac...@flipkart.com> on 2014/06/08 08:54:35 UTC

Sync Producer

Hi,

How to use a sync producer with a KeyedMessage<String, String>. The example
in the documentation points to the Async Producer. What exceptions will be
thrown if the producer.send() fails?

Could any one point to an example of sync producer?

-- 
Regards
Vamsi Subhash

Re: Sync Producer

Posted by pushkar priyadarshi <pr...@gmail.com>.
setting the config is the way to use async.it throws an exception when
unable to send a message.


On Sun, Jun 8, 2014 at 12:46 PM, Achanta Vamsi Subhash <
achanta.vamsi@flipkart.com> wrote:

> - Is setting type in config of the producer to sync the way?
> - Is the exception thrown a Runtime Exception? My IDE doesn't show that an
> exception is being thrown?
>
>
>
> On Sun, Jun 8, 2014 at 12:24 PM, Achanta Vamsi Subhash <
> achanta.vamsi@flipkart.com> wrote:
>
> > Hi,
> >
> > How to use a sync producer with a KeyedMessage<String, String>. The
> > example in the documentation points to the Async Producer. What
> exceptions
> > will be thrown if the producer.send() fails?
> >
> > Could any one point to an example of sync producer?
> >
> > --
> > Regards
> > Vamsi Subhash
> >
>
>
>
> --
> Regards
> Vamsi Subhash
>

Re: Sync Producer

Posted by Achanta Vamsi Subhash <ac...@flipkart.com>.
- Is setting type in config of the producer to sync the way?
- Is the exception thrown a Runtime Exception? My IDE doesn't show that an
exception is being thrown?



On Sun, Jun 8, 2014 at 12:24 PM, Achanta Vamsi Subhash <
achanta.vamsi@flipkart.com> wrote:

> Hi,
>
> How to use a sync producer with a KeyedMessage<String, String>. The
> example in the documentation points to the Async Producer. What exceptions
> will be thrown if the producer.send() fails?
>
> Could any one point to an example of sync producer?
>
> --
> Regards
> Vamsi Subhash
>



-- 
Regards
Vamsi Subhash