Vert.x Core(二)- Event Bus(事件总线)

LarsCheng at 
Vert.x Core(二)- Event Bus(事件总线)的配图
本文是我在学习 Vert.x 过程中的一些笔记,作为记录。因为是初学,对 Vert.x 的理解还不够透彻,如有错误之处我们可以在评论中一起讨论呦。 概述 The event bus is the nervous system of Vert.xEnventBus 是 Vert.x 的神经系统,EventBus 为 Verticle 之间提供通讯和信息传递的基础。这种方式提供了一个简单但有效的解耦。 如上图,EventBus 为多个 Verticle 实例传递消息,而在 Vertx 中每一个 Verticle 都对应着一个或者多个处理器(handler),我们将部署两个 Verticle(H1 ……