Event-driven architecture (EDA) एक डिजाइन हो जहाँ कम्पोनेन्टहरूले events (केही घटना) उत्पादन गरी र प्रतिक्रिया गरेर सञ्चार गर्छन् — सीधा कलहरूको सट्टा। यो लूज कपलिङ, स्केलेबिलिटी, र प्रतिक्रियाशीलता सक्षम गर्छ, र आधुनिक वितरित प्रणालीहरूमा सामान्य छ।
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.
