- Building Data Streaming Applications with Apache Kafka
- Manish Kumar Chanchal Singh
- 247字
- 2022-07-12 10:38:13
Message consumers
The consumer is any one who subscribes for topics in Kafka. Each consumer belongs to a consumer group and some consumer groups contains multiple consumers. Consumers are an interesting part of Kafka and we will cover them in detail.
So, it's clear that groups play an important role; in Kafka's initial version, Zookeeper was used for group management, but in the latest version, Kafka has its own group protocol built in. One of the brokers will act as a group coordinator and will be responsible for assigning and managing partitions for groups. We will talk about Zookeeper and its own protocol in later chapters specific to the consumer.
Remember that we talked about assigning an offset to a message in a partition; each consumer reads the offset and commits the offset to the group coordinator or Zookeeper. So if consumers fail for any reason, it will start from the next message of the committed offset.
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計模式
- Python王者歸來
- SSM輕量級框架應(yīng)用實戰(zhàn)
- Rust Essentials(Second Edition)
- Java EE 7 Performance Tuning and Optimization
- Mastering Android Development with Kotlin
- 第一行代碼 C語言(視頻講解版)
- Raspberry Pi Robotic Projects(Third Edition)
- Using Yocto Project with BeagleBone Black
- Android應(yīng)用開發(fā)攻略
- 一步一步學(xué)Spring Boot:微服務(wù)項目實戰(zhàn)(第2版)
- Java EE 程序設(shè)計
- Eclipse開發(fā)(學(xué)習(xí)筆記)
- Java性能權(quán)威指南
- 軟件測試