03 2019 档案
摘要:前言 Context Class diagram 如图: Verticle Types: 调度框图 时序图 Multi instances Verticle Structure
阅读全文
摘要:Start HttpServer 如何实现隔离(actor模型) Connection scheduling process: add handler to eventloop structure: HttpServer option 备注
阅读全文
摘要:异步痛点 1.回调地狱(CallBack hell) ; 解决方式 Promise 或 Future 2.执行异步后的结果如何回调currentThread ; 解决方式 Context 设计 3.如何处理依赖多异步的result进行逻辑 ; 解决方案 CompositeFuture JDK的lib
阅读全文
摘要:数据类型 一共4种 synchronous shared maps (local) asynchronous maps (local or cluster-wide) asynchronous locks (local or cluster-wide) asynchronous counters (
阅读全文
摘要:HAManager deploy an HA verticle 周期每秒检测 note:不建议使用HA模块,还是利用Health Check作为verticle服务检查,出错时自动重启服务, "启用高可用性(HA)的情况下部署Verticle。在该上下文中,当Verticle部署在突然死亡的vert
阅读全文
摘要:DeploymentManager verticle部署 Verticle Types Context Class diagram 如图: DeploymentOptions
阅读全文
摘要:FileResolver Class 解析文件
阅读全文
摘要:初始化 异步操作实现 FileSystemImpl 内部类 BlockingAction, 使用internalBlocking Pool 执行文件阻塞操作, xxxBlocking相关方法在当前主线程操作造成阻塞,尽量避免 AsyncFileImpl FileSystemImpl 的open方法返
阅读全文
摘要:eventbus 事件總線 協議棧 TCP分包,粘包解決採用方案: 消息定长(定義消息体總长度),消息分为消息头和消息体 集羣模式 1、Hazelcast 2、Infinispan 3、Apache Ignite 4、Apache Zookeeper Apache Zookeeper 事件注冊流程
阅读全文
摘要:Vertx.vertx()实例 一、构造方法 1. VertxImpl构造方法 选择 transports protocol , default select 模型 native transports protocol 2. BlockedThreadChecker线程,检查所有线程阻塞, 观察者模
阅读全文

浙公网安备 33010602011771号