kafka-basics

Kafka Basics
Kafka Basics

Contents
  1. About Kafka
  2. Architecture


     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
Compiled on SATURDAY, 26-OCTOBER-2024, 11:31:55 PM IST

Comments

Popular posts from this blog

hadoop-installation-ubuntu

jenv-tool

hive-installation-in-ubuntu