jaskey / rocketmqdeduplistener Goto Github PK
View Code? Open in Web Editor NEWRocketMQ消息幂等去重消费者,支持使用MySQL或者Redis做幂等表,开箱即用
RocketMQ消息幂等去重消费者,支持使用MySQL或者Redis做幂等表,开箱即用
大佬,你好,非常感谢你提供的消息幂等处理 Demo!
在阅读你的实现中,我看了下com.github.jaskey.rocketmq.strategy.DedupConsumeStrategy#doHandleMsgAndUpdateStatus 方法,发现业务逻辑和去重表更新操作不在一个原子操作中,如果出现业务逻辑处理成功后没有更新去重表,怎么办?
还是说这个发生的机率很小,是业务允许的范围之内?
就像 RocketMQ 无法保证严格的顺序消息,但普通的顺序消息一般业务能够接收一样?
如果使用msyql作为存储方案,缺少删除过期数据的地方啊,这样还需要增加个定时任务,删除过期数据?
大佬,你好。我看在DedupConcurrentListener类的consumeMessage方法中若消息全部成功消费只是简单了打印下了log。如果像流程图那样更新消息表状态为成功,那样可能在更新消息表的过程中宕机了,那么还是会出现消息重复的问题吧。请问一般如何解决?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.