[ 
https://issues.apache.org/jira/browse/KAFKA-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155240#comment-13155240
 ] 

Jun Rao commented on KAFKA-49:
------------------------------

Prshanth, thanks for getting started on this. I agree with your second 
approach. Basically, add a new parameter in SyncProducer.send/multisend to 
indicate whether an ack is needed or not. The high level producer can then set 
that parameter based on ProducerConfig (probably true for sync mode and false 
for async mode). 

Another question is what kind of ack does the broker send back. A simple 
approach is to send back a boolean. Another possibility is to return for each 
partition in the produce request, the latest offset after the request is 
served. Some clients could potentially make use of the returned offset.
                
> Add acknowledgement to the produce request.
> -------------------------------------------
>
>                 Key: KAFKA-49
>                 URL: https://issues.apache.org/jira/browse/KAFKA-49
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Jun Rao
>
> Currently, the produce request doesn't get acknowledged. We need to have a 
> broker send a response to the producer and have the producer wait for the 
> response before sending the next request.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to