Arquitetura orientada por eventos (EDA) é um design onde componentes se comunicam produzindo e reagindo a eventos (algo que aconteceu) — em vez de chamadas diretas. Ela permite baixo acoplamento, escalabilidade e capacidade de resposta, e é comum em sistemas distribuídos modernos.
O que é arquitetura orientada por eventos
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.
