随笔分类 -  Netty

Netty
摘要:ChannelInboundHandlerAdapter#channelRead 中如果通过 ChannelHandlerContext#writeAndFlush 发送多条消息的话,消息都是在处理完之后,一起 flush 出去的。如果想要实现每隔一段时间,发送一条消息这种需求的话,可以另起一个 s 阅读全文
posted @ 2018-10-10 19:24 快鸟 阅读(358) 评论(0) 推荐(0) 编辑
ms
摘要:1. 分布式锁 http://www.hollischuang.com/archives/1716 http://www.cnblogs.com/green-hand/p/5687611.html 分布式的CAP理论告诉我们“任何一个分布式系统都无法同时满足一致性(Consistency)、可用性( 阅读全文
posted @ 2017-03-17 12:22 快鸟 阅读(951) 评论(0) 推荐(0) 编辑