kafka-basics
Kafka Basics |
|---|
| Contents |
|
Kafka is a pub-sub(publisher-subscriber) messaging service. Topics are the key resources that stores messages in order and replicates them in a distributed way among different servers against data loss. This makes topics fault tolerant and scalable and Kafka as a reliable data provider to many consumers. Messages can be any type of information which represents state,log or event of a source system. Kafka cluster comprises of brokers(servers) and clients. Brokers are the services that run on kafka servers to store and manage messages in a distributed way and to provide the consumers with the requested topic data. Brokers responsbilities: 1. Receive messages 2. Store messages and replicate 3. Serve requests from consumers 4. Load balancing Kafka is a master less architecture. Any broker in the group can be act as leader. This leader selection is done by quorum. And the remaining brokers will act as followers. Clients are Producers(pubs) and Consumers(subs), which are applications/programs to send and receive messages via Kafka. Producers writes messages to the Kafka topics and can wait for acknowledgement. Consumers needs to subscribe to the required tooics and periodically checks for the new messages. Zookeeper is the centralized service to keep the configurations and important parameters in-sync among the distributed systems. ISR(In-Sync-Replicas) are stored in zookeeper |
Kafka Architecture
High Level Architecture |
Comments
Post a Comment