Apache Kafka Intro

Kafka is like a messaging system (like RabbitMQ) but designed for huge volumes of data and real-time streaming. It acts as a central hub where applications send and receive data (messages/events) in real time.

Producer ---> Topic ---> Partitions ---> Consumer
             (orders)   (P0  P1  P2)
                           ↓   ↓   ↓
                        Consumers Group

Kafka Components

How kafka work with (Queue, Pub/Sub)

1. Kafka as a Queue

👉 Example:

2. Kafka as Pub/Sub

👉 Example: