Producer durability settings
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
choose settings that avoid loss and duplicates.
Planned topics
acks=0no wait;acks=1leader only;acks=allall in-sync replicas. Useallfor important data.- With
acks=alland replication factor 3, setmin.insync.replicas=2so a write needs two copies. enable.idempotence=trueprevents duplicates from producer retries within a partition; it is the default in recent client versions (verify).- Retries and
delivery.timeout.msbound how long the producer keeps trying. - Durability trades latency for safety.
Draft outline details
Demonstration
a table: setting, effect, trade-off.
Check your understanding
Which acks waits for all in-sync replicas?
Show answer
acks=all.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.