Professional Documents
Culture Documents
Kafka: Apache Kafka Is Distributed Publish-Subscribe Messaging System Ex: Youtube Is Publish-Subscribe of Video System
Kafka: Apache Kafka Is Distributed Publish-Subscribe Messaging System Ex: Youtube Is Publish-Subscribe of Video System
Kafka: Apache Kafka Is Distributed Publish-Subscribe Messaging System Ex: Youtube Is Publish-Subscribe of Video System
Broker:
1. Kafka broker saves msg’s in files on hard-drive.
2. Producers are able to append msg’s to those
files.
3. Consumers are able to read from the same
files.
Formula:
Quorum = (n+1)/2
n = qty of servers.
Message Structure:
1. Timestamp(can be assigned by
broker or producer)
2. Offset no. (unique across partition)
3. Key(optional)
4. Value(seq. of bytes)
Partition
• Topics can be further divided into partitions.
• Which divides the data on multiple servers.
• Single topic can have multiple partitions in different server or on single server as well
like topic D
• If partition 0 fails, topic A will
still work on partition 2 .
• Avoid creating single partition
on 1 server.
Broker and partition.