Re:Show HN: Martinet – Distributed Task Queue for Node.js
by meritt on Monday August 18, 2014 @08:31PM
(#8195449)
The context was a RDBMS, not Redis. Redis makes a perfectly suitable queue, I agree.
The problem with using a RDBMS as a queue is it results in a continuous polling loop, it's incredibly slow, guaranteeing only a single subscribers gets a message is incredibly complex (you need to employ locking mechanisms yourself), etc.
The problem with using a RDBMS as a queue is it results in a continuous polling loop, it's incredibly slow, guaranteeing only a single subscribers gets a message is incredibly complex (you need to employ locking mechanisms yourself), etc.
Using Redis you can just BRPOP and it's perfect.