Event-driven architektura (EDA) je design, kde komponenty komunikují prostřednictvím vytváření a reagování na events (něco, co se stalo) — namísto přímých volání. Umožňuje volné propojení, škálovatelnost a responsivnost a je běžná v moderních distribuovaných systémech.
Co je event-driven architektura
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.
