Skip to content
เข้าสู่ระบบ

Event-Driven Architecture

Event-Driven Architecture (EDA) เป็นรูปแบบการออกแบบที่ระบบต่างๆ สื่อสารกันผ่าน events แทนการเรียกใช้งานตรงๆ

  • Loose Coupling - services ไม่ต้องรู้จักกันโดยตรง
  • Scalability - ขยายแต่ละ component แยกกันได้
  • Reliability - retry และ replay events ได้
  • Audit Trail - เก็บประวัติทุกการเปลี่ยนแปลง
  • Real-time Updates - แจ้งเตือนทันทีเมื่อเกิดเหตุการณ์
  • Eventual Consistency - ยอมรับความ consistency ในระยะสั้น
ScenarioExample
Order ProcessingOrderCreated -> Payment -> Shipping
User ActivityUserRegistered -> Welcome Email -> Onboarding
NotificationsCommentPosted -> Notify Author -> Push to Followers
AnalyticsPageViewed -> Update Stats -> Generate Reports

เข้าสู่ระบบเพื่อดูเนื้อหาเต็ม

ยืนยันตัวตนด้วยบัญชี Google เพื่อปลดล็อกบทความทั้งหมด