在这个示例中,我们假定这样一个事件驱动架构:异步消息(或通知)通过消息或通知代理在系统的组件之间交换。
In this example, we assume an event-driven architecture where asynchronous messages, or notifications, are exchanged among the components of the system by means of a message or notification broker.
事件驱动异步设计的一个明显优点就是,如果大量等待外部服务的操作之间没有数据依赖关系,则可以并行执行这些操作。
An obvious gain from an asynchronous, event-driven design is that many operations waiting for external services can be executed in parallel as long as no data dependency exists between them.
即使根本没有发生并行操作,事件驱动的异步架构也提供了优于传统同步设计的强大的可伸缩性。
Asynchronous, event-driven architectures also have a massive scalability advantage over traditional synchronous designs, even if no parallel operations occur at all.
应用推荐