45 ms·
Why? Redis is a "database" and is used as a queue for many different things. kue.js uses redis for its job queue. Agenda.js uses mongo for its job queue (which
by fourstar 12y ago
Why?
Redis is a "database" and is used as a queue for many different things. kue.js uses redis for its job queue. Agenda.js uses mongo for its job queue (which has a very similar API to this one listed).
- meritt 12y agoThe 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. Using Redis you can just BRPOP and it's perfect.