上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: shard自动分片 多个客户端订阅一个datahub TOPIC时, 服务端要考虑如何记录同步的点位 客户端自己维护订阅的点位, 比较麻烦 自动分片的时间间隔为分钟级 实现原理 通过心跳实现点位的同步, 每个consumer有拉数据线程和心跳线程 https://help.aliyun.com/do 阅读全文
posted @ 2019-04-16 18:26 funny_coding 阅读(288) 评论(0) 推荐(0) 编辑
摘要: | | activemq | rocketmq | kafka | robbitmq | | | | | | | | 公司 | apache | alibaba | LinkedIn | Pivotal | | 编写语言 | | java | | Erlang | | 客户端支持 | | | | | 阅读全文
posted @ 2019-03-22 10:58 funny_coding 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: eventLoopGroup中创建各个eventLoop处理线程,各个pipeLineHandler处理childEvent时是在自己的线程中, 全异步 阅读全文
posted @ 2019-03-17 21:11 funny_coding 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 项目中有些老的jar不是utf8打包的,中文显示乱码 打开的文件上直接右键 , 修改只读jar的源码 自己写的文件可以在右下角修改编码,只读文件就要用上面的方法了 阅读全文
posted @ 2019-03-07 10:01 funny_coding 阅读(14986) 评论(0) 推荐(0) 编辑
摘要: 通常我们会使用Tag过滤 特殊情况下我们也可以使用userproperties+TAGS过滤 , sql92定义 这两种都是在服务器端完成过滤, 对于超大数据量的场景(1小时4000W+)不要在客流端过滤 大集群中broker服务器达到千台级别,小应用consumer只有几台服务器 sql过滤的几点 阅读全文
posted @ 2019-03-05 23:36 funny_coding 阅读(2788) 评论(0) 推荐(0) 编辑
摘要: 一般的,我们会在where, 或者 having中加条件,count中只是某个字段 今天看到另外一种写法,不知道性能怎么样 select count( case when xxx>10 and yyy<99 then bbb else null end) cm1, count( case when 阅读全文
posted @ 2019-02-25 13:42 funny_coding 阅读(21920) 评论(0) 推荐(1) 编辑
摘要: 基本概念 零拷贝,通常在java NIO编程中会使用,比如netty网络工具包。 其真实意思是: 0 copy一般是基于DMA, DMA控制器一般是集成在设备端(比如网卡),或者主板上, 硬件上一般不在CPU芯片上 linux内核对应的dma api 有 dma_map_single 。。。 设备驱 阅读全文
posted @ 2019-02-23 22:19 funny_coding 阅读(210) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/arthas 镜像地址 https://gitee.com/arthas/arthas OGNL https://commons.apache.org/proper/commons-ognl/language-guide.html?spm=a1z 阅读全文
posted @ 2019-01-29 21:40 funny_coding 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 消息确认主要用在接收方 如果接收方没有确认, broker可以重发,确保消息至少消息一次。。 阅读全文
posted @ 2019-01-27 22:04 funny_coding 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 事务消息主要用在发送方 在connection上加上事务属性, 发送方感知到本地事务执行失败, 需要 通知broker将先前已经接收到的消息rollback,不要发给后面的消费者 , 满足强一致性的要求 broker一旦确认收到消息,消费者的事务处理就与生产者没有关系了, broker进行重试确保消 阅读全文
posted @ 2019-01-27 22:02 funny_coding 阅读(1366) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
build beautiful things, share happiness