Kafka je popularna osnova za event-driven arhitekture — gdje službe komuniciraju kroz događaje umjesto direktnih poziva. Durabilna, skalabilna Kafkina evidencija događaja čini je dobro prikladnom za event-driven sisteme, event sourcing, i CQRS.
Kafka kao event backbone
In event-driven architecture, services emit and react to EVENTS:
→ a service publishes events to Kafka ("OrderPlaced", "PaymentReceived")
→ other services CONSUME and react (decoupled — the producer doesn't know the consumers)
→ Kafka = the durable, scalable EVENT BACKBONE connecting services
→ services are decoupled, communicating via events through Kafka
