会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
mouse
博客园
首页
新随笔
联系
订阅
管理
2019年5月23日
客户端与服务端网络通信和设计相关
摘要: 概述 OSI 七层模型: 实际网络通信保证可靠性是很大挑战,总结出主要几点: 1、网络最大传输单元(MTU),以太网最大MTU 1500, ipv4 最小MTU 578, ipv6 最小MTU 1280 (目前主机普遍MTU为1500,但传输中途的主机路由不一定为1500,也会导致分包组包的消耗,极
阅读全文
posted @ 2019-05-23 10:44 cat_with_mouse
阅读(588)
评论(0)
推荐(0)
2019年4月29日
kafka Network
摘要: Kafka network Processor SocketServer.Processor index file 文件i/o的读操作,会先向文件设备发起读请求,然后驱动把请求要读的数据读取到文件的缓冲区中,这个缓冲区位于内核,然后再把这个缓冲区中的数据复制到程序虚拟地址空间中的一块区域中。 文件i
阅读全文
posted @ 2019-04-29 17:05 cat_with_mouse
阅读(267)
评论(0)
推荐(0)
2019年4月4日
netty 服务器端流程调度Flow笔记
摘要: create NioEventLoopGroup Instance 一、NioServerSocketChannel init 二、NioServerSocketChannel performs register0 method code int the AbstractChannel class:
阅读全文
posted @ 2019-04-04 13:58 cat_with_mouse
阅读(673)
评论(0)
推荐(0)
2019年3月29日
vertx的Actor模型实现
摘要: 前言 Context Class diagram 如图: Verticle Types: 调度框图 时序图 Multi instances Verticle Structure
阅读全文
posted @ 2019-03-29 14:44 cat_with_mouse
阅读(1072)
评论(0)
推荐(0)
vertx的NetServer模块
摘要: 启动 处理
阅读全文
posted @ 2019-03-29 14:42 cat_with_mouse
阅读(1259)
评论(0)
推荐(0)
2019年3月25日
vertx的HttpServer模块
摘要: Start HttpServer 如何实现隔离(actor模型) Connection scheduling process: add handler to eventloop structure: HttpServer option 备注
阅读全文
posted @ 2019-03-25 17:15 cat_with_mouse
阅读(2244)
评论(0)
推荐(0)
2019年3月22日
vertx的Future设计
摘要: 异步痛点 1.回调地狱(CallBack hell) ; 解决方式 Promise 或 Future 2.执行异步后的结果如何回调currentThread ; 解决方式 Context 设计 3.如何处理依赖多异步的result进行逻辑 ; 解决方案 CompositeFuture JDK的lib
阅读全文
posted @ 2019-03-22 16:14 cat_with_mouse
阅读(3264)
评论(0)
推荐(1)
2019年3月21日
vertx的ShardData共享数据
摘要: 数据类型 一共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
阅读(838)
评论(1)
推荐(1)
2019年3月20日
vertx模块HAManager高可用
摘要: HAManager deploy an HA verticle 周期每秒检测 note:不建议使用HA模块,还是利用Health Check作为verticle服务检查,出错时自动重启服务, "启用高可用性(HA)的情况下部署Verticle。在该上下文中,当Verticle部署在突然死亡的vert
阅读全文
posted @ 2019-03-20 14:52 cat_with_mouse
阅读(804)
评论(0)
推荐(0)
2019年3月19日
vertx模块DeploymentManager部署管理器
摘要: DeploymentManager verticle部署 Verticle Types Context Class diagram 如图: DeploymentOptions
阅读全文
posted @ 2019-03-19 10:51 cat_with_mouse
阅读(976)
评论(0)
推荐(0)
下一页
公告