If you want to emulate the old sync producer behavior, you need to set the batch size to 1 (in producer config) and wait on the future you get from Send (i.e. future.get)
I can't think of good reasons to do so, though. Gwen On Mon, Feb 2, 2015 at 11:08 AM, Otis Gospodnetic <otis.gospodne...@gmail.com> wrote: > Hi, > > Is the plan for New Producer to have ONLY async mode? I'm asking because > of this info from the Wiki: > > > - The producer will always attempt to batch data and will always > immediately return a SendResponse which acts as a Future to allow the > client to await the completion of the request. > > > The word "always" makes me think there will be no sync mode. > > Thanks, > Otis > -- > Monitoring * Alerting * Anomaly Detection * Centralized Log Management > Solr & Elasticsearch Support * http://sematext.com/