You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jay Kreps (JIRA)" <ji...@apache.org> on 2012/11/15 23:13:12 UTC

[jira] [Updated] (KAFKA-616) Implement acks=0

     [ https://issues.apache.org/jira/browse/KAFKA-616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Kreps updated KAFKA-616:
----------------------------

    Description: 
For completeness it would be nice to handle the case where acks=0 in the produce request. The meaning of this would be that the broker immediately responds without blocking even on the local write. The advantage of this is that it would often isolate the producer from any latency in the local write (which we have occasionally seen).

Since we don't block on the append the response would contain a placeholder for all the fields--e.g. offset=-1 and no error.

This should be pretty easy to implement, just an if statement in KafkaApis.handleProduceRequest to send the response immediately in this case (and again to avoid sending a second response later).

  was:
For completeness it would be nice to handle the case where acks=0 in the produce request. The meaning of this would be that the broker immediately responds without blocking even on the local write. The advantage of this is that it would often isolate the producer from any latency in the local write (which we have occasionally seen).

Since we don't block on the append the response would contain a placeholder for all the fields--e.g. offset=-1 and no error.

    
> Implement acks=0
> ----------------
>
>                 Key: KAFKA-616
>                 URL: https://issues.apache.org/jira/browse/KAFKA-616
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Jay Kreps
>
> For completeness it would be nice to handle the case where acks=0 in the produce request. The meaning of this would be that the broker immediately responds without blocking even on the local write. The advantage of this is that it would often isolate the producer from any latency in the local write (which we have occasionally seen).
> Since we don't block on the append the response would contain a placeholder for all the fields--e.g. offset=-1 and no error.
> This should be pretty easy to implement, just an if statement in KafkaApis.handleProduceRequest to send the response immediately in this case (and again to avoid sending a second response later).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira