Kafka is een populaire basis voor event-driven architectures — waar services communiceren via events in plaats van directe aanroepen. Kafka's duurzame, schaalbare event log maakt het zeer geschikt voor event-driven systemen, event sourcing en CQRS.
Kafka als de 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
