What is a Kafka Consumer and How does it work?

  Рет қаралды 3,270

Confluent

Confluent

Күн бұрын

Now that your data is inside your Kafka cluster, how do you get it out? In this video, Dan Weston covers the basics of Kafka Consumers: what consumers are, how they get your data flowing, and best practices for configuring consumers in a real-time data streaming system. You will also learn about offsets, consumer groups, and partition assignment.
Learn more about Apache Kafka here with our free courses: developer.confluent.io/course...
RELATED RESOURCES
► What is a Producer and How does it work: • What are Kafka Produce...
► Kafka Consumers Explained: • Kafka Consumers Explai...
► Consumer Group IDs: • Introduction to Consum...
► Apache Kafka 101-Consumers: cnfl.io/49JMXum
► Apache Kafka for .NET Developers: cnfl.io/3wJWdzY
► Kafka Consumer | Documentation: cnfl.io/3VebfYT
CHAPTERS
00:00 - Intro
00:08 - What is a Consumer?
01:26 - Consumer Offsets
02:15 - Consumer Group
02:49 - Partition Assignment
03:46 - Consumer Configuration
04:55 - Closing
--
ABOUT CONFLUENT
Confluent is pioneering a fundamentally new category of data infrastructure focused on data in motion. Confluent’s cloud-native offering is the foundational platform for data in motion - designed to be the intelligent connective tissue enabling real-time data, from multiple sources, to constantly stream across the organization. With Confluent, organizations can meet the new business imperative of delivering rich, digital front-end customer experiences and transitioning to sophisticated, real-time, software-driven backend operations. To learn more, please visit www.confluent.io.
#streamprocessing #apachekafka #kafka #confluent

Пікірлер: 6
@ConfluentDevXTeam
@ConfluentDevXTeam 3 ай бұрын
This is Dan, just a minor correction to clarify what I say in the video. Both the key and value are serialized on the producer and deserialized once they arrive at the consumer. After the serialization happens then the key, if any, is used to determine the partition the messages will go to. However, this is only done after the message has been serialized. Similar to the producer video we just published, this video is meant to give an overview of Kafka Consumers. Be sure to check out our Kafka Producers video as well: kzbin.info/www/bejne/mXipm5dtpN1nnpY I’d also love to hear the other aspects of Kafka you’d like to see us breakdown, or areas you feel a lot of people struggle with.
@SagarD-sg8ej
@SagarD-sg8ej 14 күн бұрын
In the 4 min of producer and 5 min of consumer given me good knowledge
@USL-hd9cf
@USL-hd9cf 3 ай бұрын
Great video! Thank you for the clear explanation. Can you provide more insight on how the key is used to serialize and deserialize messages in Kafka? I would also like your thoughts on consumer group strategy. You said it could range from zero to the number of partitions. What is a good way to determine the number of consumer groups.
@ConfluentDevXTeam
@ConfluentDevXTeam 3 ай бұрын
Thanks for your comment. Kafka uses Murmur2 to generate the hash key. It then uses a mod function to determine the partition. Here is the function inside of Kafka: github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/BuiltInPartitioner.java#L327 You can also check out this blog post to dive deeper into how the hashing works: www.confluent.io/blog/standardized-hashing-across-java-and-non-java-producers/ As for consumer group strategy, this blog post by my colleague Lucia is a great primer to understand more about consumer groups: www.confluent.io/blog/kafka-consumer-group-partition-strategy/ Let me know if these resources help!
@BishalKarki-pe8hs
@BishalKarki-pe8hs 3 ай бұрын
Need schema-registry with python tutorials
@SagarD-sg8ej
@SagarD-sg8ej 14 күн бұрын
In the 4 min of producer and 5 min of consumer given me good knowledge
What are Kafka Producers and How do they work?
4:57
Confluent
Рет қаралды 2,6 М.
3. Apache Kafka Fundamentals | Apache Kafka Fundamentals
24:14
Confluent
Рет қаралды 445 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,6 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 6 МЛН
Apache Kafka® Consumers and Consumer Group Protocol
15:08
Confluent
Рет қаралды 19 М.
What is Kafka and How does it work?
15:04
Hussein Nasser
Рет қаралды 139 М.
4. How Kafka Works | Apache Kafka Fundamentals
26:41
Confluent
Рет қаралды 187 М.
Kubernetes Explained in 15 Minutes | Hands On (2024 Edition)
15:18
Travis Media
Рет қаралды 58 М.
But What Is Cloud Native Really All About?
7:32
ByteByteGo
Рет қаралды 137 М.
Apache Kafka® Topic Compaction
10:56
Confluent
Рет қаралды 10 М.
Apache Kafka основы УРОК 2. Что такое broker, consumer, producer, topic, partition и т.д.
8:18
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 1,6 МЛН
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 788 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 1,7 МЛН
Как работает автопилот на Lixiang L9 Max
0:34
Семен Ефимов
Рет қаралды 14 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 829 М.