From the course: Complete Guide to Apache Kafka for Beginners
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Producer acknowledgments and topic durability - Kafka Tutorial
From the course: Complete Guide to Apache Kafka for Beginners
Producer acknowledgments and topic durability
Hi, this is Stephane from conduktor and I just want to introduce one more topic on producer acknowledgments that we'll explore in depth later on this course. But I just want to introduce the concept to you right now. So we have the producer sending data into our brokers. Okay. Now we know that brokers have the topic partitions. And so the producers can choose to receive acknowledgments of data writes. That means to have the confirmation from the Kafka broker that the write did successfully happen. So we have three settings and we have acks equals zero, which means that the producer is not even going to wait or ask for an acknowledgment. That means that we have a possible data loss because if a broker goes down, we won't know about it. Then we have acks equals one, which means that the producer is going to wait for the leader of a partition. And this is very important that we understand, not whether leader is. So it's going to wait for the leader broker to acknowledge and that means we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Topics, partitions, and offsets6m 10s
-
(Locked)
Producers and message keys7m 24s
-
(Locked)
Consumers and deserialization4m 1s
-
(Locked)
Consumer groups and consumer offsets7m 4s
-
(Locked)
Brokers and topics4m 28s
-
(Locked)
Topic replication5m 30s
-
(Locked)
Producer acknowledgments and topic durability2m 9s
-
(Locked)
ZooKeeper5m 14s
-
Kafka KRaft: Removing ZooKeeper1m 58s
-
(Locked)
Theory roundup1m 33s
-
-
-
-
-
-
-
-
-
-
-
-
-
-