摘要: 概述 OSI 七层模型: 实际网络通信保证可靠性是很大挑战,总结出主要几点: 1、网络最大传输单元(MTU),以太网最大MTU 1500, ipv4 最小MTU 578, ipv6 最小MTU 1280 (目前主机普遍MTU为1500,但传输中途的主机路由不一定为1500,也会导致分包组包的消耗,极 阅读全文
posted @ 2019-05-23 10:44 cat_with_mouse 阅读(554) 评论(0) 推荐(0) 编辑
摘要: Kafka network Processor SocketServer.Processor index file 文件i/o的读操作,会先向文件设备发起读请求,然后驱动把请求要读的数据读取到文件的缓冲区中,这个缓冲区位于内核,然后再把这个缓冲区中的数据复制到程序虚拟地址空间中的一块区域中。 文件i 阅读全文
posted @ 2019-04-29 17:05 cat_with_mouse 阅读(252) 评论(0) 推荐(0) 编辑
摘要: create NioEventLoopGroup Instance 一、NioServerSocketChannel init 二、NioServerSocketChannel performs register0 method code int the AbstractChannel class: 阅读全文
posted @ 2019-04-04 13:58 cat_with_mouse 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 前言 Context Class diagram 如图: Verticle Types: 调度框图 时序图 Multi instances Verticle Structure 阅读全文
posted @ 2019-03-29 14:44 cat_with_mouse 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 启动 处理 阅读全文
posted @ 2019-03-29 14:42 cat_with_mouse 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: Start HttpServer 如何实现隔离(actor模型) Connection scheduling process: add handler to eventloop structure: HttpServer option 备注 阅读全文
posted @ 2019-03-25 17:15 cat_with_mouse 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 异步痛点 1.回调地狱(CallBack hell) ; 解决方式 Promise 或 Future 2.执行异步后的结果如何回调currentThread ; 解决方式 Context 设计 3.如何处理依赖多异步的result进行逻辑 ; 解决方案 CompositeFuture JDK的lib 阅读全文
posted @ 2019-03-22 16:14 cat_with_mouse 阅读(3189) 评论(0) 推荐(1) 编辑
摘要: 数据类型 一共4种 synchronous shared maps (local) asynchronous maps (local or cluster-wide) asynchronous locks (local or cluster-wide) asynchronous counters ( 阅读全文
posted @ 2019-03-21 16:31 cat_with_mouse 阅读(807) 评论(1) 推荐(1) 编辑
摘要: HAManager deploy an HA verticle 周期每秒检测 note:不建议使用HA模块,还是利用Health Check作为verticle服务检查,出错时自动重启服务, "启用高可用性(HA)的情况下部署Verticle。在该上下文中,当Verticle部署在突然死亡的vert 阅读全文
posted @ 2019-03-20 14:52 cat_with_mouse 阅读(755) 评论(0) 推荐(0) 编辑
摘要: DeploymentManager verticle部署 Verticle Types Context Class diagram 如图: DeploymentOptions 阅读全文
posted @ 2019-03-19 10:51 cat_with_mouse 阅读(927) 评论(0) 推荐(0) 编辑