Kafka on suosittu perusta event-driven arkkitehtuurille — arkkitehtuurille, jossa palvelut kommunikoivat eventtien kautta suorien kutsujen sijaan. Kafkan kestävä, skaalautuva event-loki tekee siitä hyvin sopivan event-driven-järjestelmille, event sourcing -mallille ja CQRS-mallille.
Kafka event-backbonena
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
