Event-driven architecture (EDA) एक डिज़ाइन है जहां घटक प्रत्यक्ष कॉल के बजाय events (कुछ जो घटित हुआ) उत्पन्न करके और उन पर प्रतिक्रिया करके संवाद करते हैं। यह loose coupling, scalability, और responsiveness को सक्षम बनाता है, और आधुनिक distributed सिस्टम में सामान्य है।
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.
