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.
Consumers and deserialization - Kafka Tutorial
From the course: Complete Guide to Apache Kafka for Beginners
Consumers and deserialization
Hi, this is Stephane from Conduktor and welcome to this lecture on Kafka Consumers. So we've seen how to produce data into your topic, but now we need to read data from that topic. And for this, we're going to use consumers. Consumers implement the pool model. That means that consumers are going to request data from the Kafka brokers, the servers, and then they will get a response back. It's not the Kafka broker pushing data to the consumers, okay? It's a pull model. So we have an example with three topic partitions that contain data, and then one consumer may want to read from topic A partition 0, and it's going to read the data just like this. And another consumer may choose to read for more than one topic partition. So it may choose to read data again from partition 1 and partition 2. So the consumers, when they need to read data from a partition, they will automatically know which broker, which Kafka server to read from. And in case a broker has a failure, the consumers are again…
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
-
-
-
-
-
-
-
-
-
-
-
-
-
-