Kafka เป็นรากฐานยอดนิยมสำหรับ event-driven architecture — ที่ services สื่อสารกันผ่าน events แทนการเรียกตรง ๆ event log ที่ทนทานและ scale ได้ของ Kafka ทำให้มันเหมาะกับระบบ event-driven, event sourcing และ CQRS
Kafka ในฐานะแกนหลักของ event
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
