Skip to content

Instantly share code, notes, and snippets.

@mojavelinux
Created December 30, 2014 05:44
Show Gist options
  • Save mojavelinux/8b8d20acdc15b28b3e49 to your computer and use it in GitHub Desktop.
Save mojavelinux/8b8d20acdc15b28b3e49 to your computer and use it in GitHub Desktop.
Using an open block to organize complex list content in AsciiDoc
requiredNumAck

An integer indicating the acknowledgement mode for messages sent to Kafka. This setting affects the durability of messages.

0

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).

1

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).

-1

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.

Required.

Example
log4j.appender.sd.requiredNumAck = -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment