Įvykiais paremta architektūra (EDA) yra dizainas, kuriame komponentai bendrauja gamindami ir reaguodami į įvykius (tai, kas nutiko) — o ne tiesioginiais skambučiais. Ji leidžia laisvą sujungimą, masteliavimą ir greitą reagavimą, ir yra dažna šiuolaikinėse paskirstytose sistemose.
Kas yra įvykiais paremta architektūra
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.
