SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Components of Kafka
By: Arvind Singh Rawat
Broker
Broker
Place where messages are stored in the actual physical instance
An announcement hall can act as a broker in Real world.
Publisher
Publisher
System which generates the messages.
Consumers
Consumers
Consumes the messages delivered by Publisher through Broker.
Like listeners of an announcement in public forum.
Message
Actual content provided by the Publisher
Topics
Topics
A Topic is a logical channel or category of messages to which data/messages are published,
like actual category of announcement.
Each topic will have its own set of messages, and its own set of publishers and subscribers.
Each topic can have multiple partitions and one message can be sent to any one of the partitions.
This will allow parallel message production and consumption.
Partition
A
Partition
B
Partition
C
In this case, lets say a Message A is sent to topmost partition.
That message can additionally be replicated for redundancy.
Partition
A
Partition
B
Partition
C
Broker 2
In our case, Announcement Hall 2
Broker 1
In our case, Announcement Hall 1
Partitions can be distributed among different Brokers for high availability.
Let’s shift our focus to Kafka’s other key feature: Queue.
1, 2, 3!!!
Mic
Check
Hello!
I heard till
Hello!
I heard till
1,2,3!!! I heard till
Mic Check
Kafka maintains the position of a consumer within
a partition of a topic which is called as an Offset.
What happens if a Consumer joins after few of the
messages are delivered ?
I am late
!!!
Kafka topic retains the message for a
configurable period of time or size and
Consumer can choose to read from the
earliest (all the available messages) or
latest (only messages after it joins)
Hurray !!! I can hear the
older announcements
1. Hello !
2. Mic Check
3. 1, 2, 3 !!!
4. .
5. .
6. .
Historical messages are stored in an
immutable Write-Ahead log.
1. Hello !
2. Mic Check
3. 1, 2, 3 !!!
4. .
5. .
6. .
Hey, I need to drop off, can
you let me know of upcoming
announcements
Yeah, sure !
Consumer Group
1. Hello !
2. Mic Check
3. 1, 2, 3 !!!
4. .
5. .
6. .
Multiple consumers can read from a topic
and thus enables parallel consumption.
Hey, I need to drop off, can
you let me know of upcoming
announcements
Yeah, sure !
Consumer Group
1. Hello !
2. Mic Check
3. 1, 2, 3 !!!
4. .
5. .
6. .
Each consumer group consumes messages
from a single partition, which is not read by
other consumers of same group.
Consumer Group
1. Hello !
2. Mic Check
3. 1, 2, 3 !!!
4. .
5. .
6. .
Even if a consumer leaves the group, other
consumers will take it place to ensure
message consumption.
Consumer Group

Weitere ähnliche Inhalte

Ähnlich wie Animated: Components of Kafka

apachekafka-160907180205.pdf
apachekafka-160907180205.pdfapachekafka-160907180205.pdf
apachekafka-160907180205.pdf
TarekHamdi8
 

Ähnlich wie Animated: Components of Kafka (20)

Kafka Overview
Kafka OverviewKafka Overview
Kafka Overview
 
Triage Presentation
Triage PresentationTriage Presentation
Triage Presentation
 
Kafka Deep Dive
Kafka Deep DiveKafka Deep Dive
Kafka Deep Dive
 
Notes leo kafka
Notes leo kafkaNotes leo kafka
Notes leo kafka
 
Kafka RealTime Streaming
Kafka RealTime StreamingKafka RealTime Streaming
Kafka RealTime Streaming
 
Data Pipelines with Apache Kafka
Data Pipelines with Apache KafkaData Pipelines with Apache Kafka
Data Pipelines with Apache Kafka
 
Kafka.pptx
Kafka.pptxKafka.pptx
Kafka.pptx
 
Kafka tutorial
Kafka tutorialKafka tutorial
Kafka tutorial
 
A Quick Guide to Refresh Kafka Skills
A Quick Guide to Refresh Kafka SkillsA Quick Guide to Refresh Kafka Skills
A Quick Guide to Refresh Kafka Skills
 
apachekafka-160907180205.pdf
apachekafka-160907180205.pdfapachekafka-160907180205.pdf
apachekafka-160907180205.pdf
 
Apache kafka
Apache kafkaApache kafka
Apache kafka
 
Grokking TechTalk #24: Kafka's principles and protocols
Grokking TechTalk #24: Kafka's principles and protocolsGrokking TechTalk #24: Kafka's principles and protocols
Grokking TechTalk #24: Kafka's principles and protocols
 
Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !Apache Kafka - Scalable Message-Processing and more !
Apache Kafka - Scalable Message-Processing and more !
 
[@NaukriEngineering] Messaging Queues
[@NaukriEngineering] Messaging Queues[@NaukriEngineering] Messaging Queues
[@NaukriEngineering] Messaging Queues
 
Apache Kafka Women Who Code Meetup
Apache Kafka Women Who Code MeetupApache Kafka Women Who Code Meetup
Apache Kafka Women Who Code Meetup
 
Kafka syed academy_v1_introduction
Kafka syed academy_v1_introductionKafka syed academy_v1_introduction
Kafka syed academy_v1_introduction
 
Apache kafka
Apache kafkaApache kafka
Apache kafka
 
Apache kafka introduction
Apache kafka introductionApache kafka introduction
Apache kafka introduction
 
Apache kafka
Apache kafkaApache kafka
Apache kafka
 
Apache kafka
Apache kafkaApache kafka
Apache kafka
 

Kürzlich hochgeladen

CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
Wonjun Hwang
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
Overkill Security
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 

Kürzlich hochgeladen (20)

2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
How to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in PakistanHow to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in Pakistan
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 

Animated: Components of Kafka

  • 1. Components of Kafka By: Arvind Singh Rawat
  • 3. Broker Place where messages are stored in the actual physical instance An announcement hall can act as a broker in Real world.
  • 7. Consumers Consumes the messages delivered by Publisher through Broker. Like listeners of an announcement in public forum.
  • 9. Actual content provided by the Publisher
  • 11. Topics A Topic is a logical channel or category of messages to which data/messages are published, like actual category of announcement.
  • 12.
  • 13. Each topic will have its own set of messages, and its own set of publishers and subscribers.
  • 14. Each topic can have multiple partitions and one message can be sent to any one of the partitions. This will allow parallel message production and consumption. Partition A Partition B Partition C
  • 15. In this case, lets say a Message A is sent to topmost partition. That message can additionally be replicated for redundancy. Partition A Partition B Partition C
  • 16. Broker 2 In our case, Announcement Hall 2 Broker 1 In our case, Announcement Hall 1 Partitions can be distributed among different Brokers for high availability.
  • 17. Let’s shift our focus to Kafka’s other key feature: Queue.
  • 18. 1, 2, 3!!! Mic Check Hello! I heard till Hello! I heard till 1,2,3!!! I heard till Mic Check Kafka maintains the position of a consumer within a partition of a topic which is called as an Offset.
  • 19. What happens if a Consumer joins after few of the messages are delivered ? I am late !!!
  • 20. Kafka topic retains the message for a configurable period of time or size and Consumer can choose to read from the earliest (all the available messages) or latest (only messages after it joins) Hurray !!! I can hear the older announcements
  • 21. 1. Hello ! 2. Mic Check 3. 1, 2, 3 !!! 4. . 5. . 6. . Historical messages are stored in an immutable Write-Ahead log.
  • 22. 1. Hello ! 2. Mic Check 3. 1, 2, 3 !!! 4. . 5. . 6. . Hey, I need to drop off, can you let me know of upcoming announcements Yeah, sure ! Consumer Group
  • 23. 1. Hello ! 2. Mic Check 3. 1, 2, 3 !!! 4. . 5. . 6. . Multiple consumers can read from a topic and thus enables parallel consumption. Hey, I need to drop off, can you let me know of upcoming announcements Yeah, sure ! Consumer Group
  • 24. 1. Hello ! 2. Mic Check 3. 1, 2, 3 !!! 4. . 5. . 6. . Each consumer group consumes messages from a single partition, which is not read by other consumers of same group. Consumer Group
  • 25. 1. Hello ! 2. Mic Check 3. 1, 2, 3 !!! 4. . 5. . 6. . Even if a consumer leaves the group, other consumers will take it place to ensure message consumption. Consumer Group