Event-driven architecture (EDA) ialah satu reka bentuk di mana komponen berkomunikasi dengan menghasilkan dan bertindak balas terhadap event (sesuatu yang berlaku) — dan bukannya panggilan langsung. Ia membolehkan gandingan longgar (loose coupling), kebolehskalaan, dan kebolehtindakbalasan, serta lazim dalam sistem teragih moden.
Apakah event-driven architecture
Components communicate via EVENTS (a notification that something happened):
→ PRODUCERS emit events ("order placed", "user signed up") without knowing who handles them
→ CONSUMERS react to events they care about (asynchronously)
→ an event BROKER/bus (Kafka, message queue) routes events
→ components are DECOUPLED → they react to events, not call each other directly.
