Event-Driven Architecture
What is Event-Driven Architecture
Section titled “What is Event-Driven Architecture”Event-Driven Architecture (EDA) เป็นรูปแบบการออกแบบที่ระบบต่างๆ สื่อสารกันผ่าน events แทนการเรียกใช้งานตรงๆ
Benefits
Section titled “Benefits”- Loose Coupling - services ไม่ต้องรู้จักกันโดยตรง
- Scalability - ขยายแต่ละ component แยกกันได้
- Reliability - retry และ replay events ได้
- Audit Trail - เก็บประวัติทุกการเปลี่ยนแปลง
- Real-time Updates - แจ้งเตือนทันทีเมื่อเกิดเหตุการณ์
- Eventual Consistency - ยอมรับความ consistency ในระยะสั้น
Use Cases
Section titled “Use Cases”| Scenario | Example |
|---|---|
| Order Processing | OrderCreated -> Payment -> Shipping |
| User Activity | UserRegistered -> Welcome Email -> Onboarding |
| Notifications | CommentPosted -> Notify Author -> Push to Followers |
| Analytics | PageViewed -> Update Stats -> Generate Reports |
เข้าสู่ระบบเพื่อดูเนื้อหาเต็ม
ยืนยันตัวตนด้วยบัญชี Google เพื่อปลดล็อกบทความทั้งหมด
Login with Google