Comments (1)
I'm changing it right now to just use RPOPLPUSH
until either the delivery channel is full or the source redis list is empty (RPOPLPUSH
return (nil)
). That way we get rid of LLEN
.
I did consider using BRPOPLPUSH
but there seems to be a problem. If the queue is empty and no new deliveries get produced, if the consumer is blocked on PRPOPLPUSH
and calls queue.StopConsuming()
(from a different goroutine), then we don't get a chance to check the consumingStopped
value inside of consume()
and will remain blocked forever.
For that reason I'm closing this issue. Thanks for the suggestion though! 🙌
from rmq.
Related Issues (20)
- How do rmq ensure that messages are consumed at least once? HOT 1
- There is a race between RMQ shutting itself down after heartbeat failure and other operations. HOT 1
- Can two consumer consume same queue? HOT 2
- Trying to use rmq against a clustered Redis/Elasticcache Db. keep getting the "MOVED" error. HOT 9
- question? HOT 1
- redis cluster - CROSSSLOT error HOT 28
- When cleaner will move unacked queue to ready queue? HOT 2
- Propagating Context HOT 4
- [Question] How to process unacked tasks? HOT 7
- Add Support for sharing rmq Queues across multiple Connections HOT 3
- delay queue function HOT 1
- Is the queue thread-safe? HOT 1
- Any plan to implement BufferedQueue? HOT 2
- How to ensure that the writing and consumption of messages are ordered? HOT 1
- Delivery Ack/Reject fails when header is used
- Readme seems outdate, there is no need for errChan now HOT 1
- heartbeat is not stopped HOT 2
- update the redis sdk HOT 3
- Differentiate between Reject, Ack, Push errors in DeliveryError HOT 6
- Ability to remove/cancel task HOT 4
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 rmq.