What Problem Does Kafka Solve?

When a customer places an order on Zomato, multiple things need to happen at the same time:

Without Kafka, the Zomato app would call each of these services directly over HTTP/REST. If the payment service is slow, everything waits. If the notification service is down, data is lost.

Kafka solves this by decoupling producers from consumers using a message broker.


Core Components

Producer

Broker (Kafka Server)

Topic