Comments (3)
你好,感谢关注!
ZK使用Map维护路径的watcher,重复watch只会有一个watcher存在。
上面提到的周期性watch是为了做ZK连接的有效性检测和补偿,非核心代码。
因为ZK连接中断后已经做了重连的逻辑处理。
from xxl-mq.
但是在周期性watch的时候应该使用topicConsumerRespository吧?代码里用的是queueConsumerRespository,而这一部分逻辑是在initTopicConsumer里边,具体是在XxlMqConsumer类的136行,您可以看一下
from xxl-mq.
是的,initTopicConsumer应该只处理topic类型消息的逻辑,已经做了调整并推送master。
赞!欢迎继续PR和ISSUE啊 :)
from xxl-mq.
Related Issues (20)
- PR请求Review HOT 1
- 在XxlProducer中增加新方法后无法找到该方法 HOT 1
- 如何取消一个延迟发布的消息 HOT 3
- broker的代码在哪里? HOT 1
- 消息队列中心的消息记录查询建议增加按生效时间来排序
- 建议手动设定线程池
- 依赖数据库堆积mq消息,每个consumer拉取从数据库拉取消息并且是单线程去消费消息,在数据量比较大的情况下,延迟会不会很大? HOT 1
- 定时任务大约比约定的时间晚30秒执行 HOT 1
- 集群部署会出现 time wait过多!
- samples demo index.ftl file have a time error
- consumer group 和provider group设计在一起了,是有问题的
- Topic下的待处理消息数据在1W条左右,xxl-rpc会有invoke error
- rpc 模块能升级一下吗?
- 配置目录问题 HOT 2
- 关于license HOT 1
- 为什么基于zk来进行广播呢? HOT 5
- 单机部署可以运行,多网卡多机部署失败 HOT 2
- XxlMqClient 中代码的一个疑问,似乎同步没有起作用 HOT 2
- 关于部署的一个小白问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xxl-mq.