Files
nexus/wiki/concepts/Event-Driven-Architecture.md
2026-04-20 00:02:56 +08:00

35 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Event-Driven Architecture"
type: concept
tags: [Architecture, Event-Driven, Async, Serverless]
sources: []
last_updated: 2026-04-19
---
## Summary
事件驱动架构是一种以事件为核心驱动系统行为的架构模式,实现服务间松耦合。
## Definition
Event-Driven ArchitectureEDA是一种软件架构范式组件之间通过事件状态变化或动作进行通信和解耦。
## Core Characteristics
- **异步通信**:事件生产者与消费者基于事件解耦
- **事件驱动**:行为由事件触发,而非直接调用
- **松耦合**:事件生产者不关心消费者实现
- **可扩展性**:易于扩展新事件消费者
## Use Cases
- 实时数据处理
- 微服务异步通信
- 物联网数据采集
- 实时工作流触发
## Related Services
- [[EventBridge]]AWS 事件总线
- [[Amazon SQS]]:消息队列
- [[Amazon SNS]]:发布/订阅通知
- [[Lambda]]:事件目标
## Related Patterns
- [[Message Queue]]:消息队列模式
- [[Pub/Sub]]:发布/订阅模式