Event-driven Architecture
定义 Definition
事件驱动架构:一种软件架构风格,系统通过“事件”(如用户点击、订单创建、传感器上报等)的产生、发布与订阅来触发后续处理。各组件通常以松耦合方式协作,常用于需要高扩展性、异步处理与实时响应的场景。(也可简称 EDA)
发音 Pronunciation
/ɪˈvɛnt ˌdrɪvən ˈɑːrkɪtɛktʃər/
例句 Examples
Our system uses event-driven architecture to process user actions in real time.
我们的系统使用事件驱动架构来实时处理用户操作。
In an event-driven architecture, services publish events to a message broker, allowing other services to react asynchronously without tight coupling.
在事件驱动架构中,各服务将事件发布到消息代理中,使其他服务能够在不紧密耦合的情况下异步响应。
词源 Etymology
该术语由 event-driven(事件驱动的) 与 architecture(架构) 组合而成:
- event 源自拉丁语 eventus,有“发生的结果/事件”之意;
- drive 有“驱动、推动”之意,构成 driven 表示“被……驱动的”;
整体表达“以事件作为主要触发机制来组织系统结构”的思想。
相关词 Related Words
文学/著作中的用例 Notable Works
- Designing Event-Driven Systems(Ben Stopford)
- Building Event-Driven Microservices(Adam Bellemare)
- Enterprise Integration Patterns(Gregor Hohpe & Bobby Woolf)
- Kafka: The Definitive Guide(Neha Narkhede, Gwen Shapira, Todd Palino)
- Reactive Design Patterns(Roland Kuhn, Jamie Allen, Brian Hanafee)