ایونٹ ڈریون آرکیٹیکچر (EDA) ایک ڈیزائن ہے جہاں اجزاء براہ راست کالز کی بجائے ایونٹس (کوئی چیز جو واقع ہوئی) تیار کر کے اور ان پر عمل کر کے ایک دوسرے سے بات کرتے ہیں۔ یہ ڈھیلی coupling، scalability، اور responsiveness کو فعال بناتا ہے، اور جدید distributed systems میں عام ہے۔
ایونٹ ڈریون آرکیٹیکچر کیا ہے
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.
