1.0 KiB
1.0 KiB
title, type, tags, sources, last_updated
| title | type | tags | sources | last_updated | ||||
|---|---|---|---|---|---|---|---|---|
| Event-Driven Architecture | concept |
|
2026-04-19 |
Summary
事件驱动架构是一种以事件为核心驱动系统行为的架构模式,实现服务间松耦合。
Definition
Event-Driven Architecture(EDA)是一种软件架构范式,组件之间通过事件(状态变化或动作)进行通信和解耦。
Core Characteristics
- 异步通信:事件生产者与消费者基于事件解耦
- 事件驱动:行为由事件触发,而非直接调用
- 松耦合:事件生产者不关心消费者实现
- 可扩展性:易于扩展新事件消费者
Use Cases
- 实时数据处理
- 微服务异步通信
- 物联网数据采集
- 实时工作流触发
Related Services
- EventBridge:AWS 事件总线
- Amazon SQS:消息队列
- Amazon SNS:发布/订阅通知
- Lambda:事件目标
Related Patterns
- Message Queue:消息队列模式
- Pub/Sub:发布/订阅模式