ઈવેન્ટ-ડ્રિવન આર્કિટેક્ચર (EDA) એક ડિઝાઈન છે જ્યાં ઘટકો ઈવેન્ટ્સ (કંઈક જે બન્યું છે) પેદા કરીને અને તેના પર પ્રતિક્રિયા કરીને સંચાર કરે છે — સીધા કોલ્સ કરવાને બદલે। આ ढીલો coupling, scalability અને responsiveness સક્ષમ કરે છે, અને આધુનિક distributed સિસ્ટમમાં સામાન્ય છે।
ઈવેન્ટ-ડ્રિવન આર્કિટેક્ચર શું છે
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.
