Skip to content

Instantly share code, notes, and snippets.

@esammer
Last active August 29, 2015 14:12
Show Gist options
  • Save esammer/f26745d2de681f39b624 to your computer and use it in GitHub Desktop.
Save esammer/f26745d2de681f39b624 to your computer and use it in GitHub Desktop.
RequiredAcks

The level of acknowledgement you wish to receive before the message is to be considered delivered. There is a performance/reliability trade off inherent in choosing a value for this setting. Defaults to WaitForLocal.

Required.

Example
  RequiredAcks = WaitForAll

Accepted Values:

NoResponse

The producer never waits for an acknowledgement from the broker. This option provides the lowest latency but the weakest durability guarantees (some data will be lost when a server fails).

WaitForLocal

The producer gets an acknowledgement after the leader replica has received the data. This option provides better durability as the client waits until the server acknowledges the request as successful (only messages that were written to the now-dead leader but not yet replicated will be lost).

WaitForAll

The producer gets an acknowledgement after all in-sync replicas have received the data. This option provides the best durability, we guarantee that no messages will be lost as long as at least one in sync replica remains.

Outdented Paragraph. This should be a child of RequiredAcks:: but not WaitForAll:::.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment