kue
kue copied to clipboard
Kue without Redis
I'm running an app that (for the foreseeable future) will not be scaled beyond a single running instance. I'd like to keep the job queue in-memory without having to make calls to redis. Am I crazy or is kue unnecessary in this case?
I like the API a whole lot.
Thanks.
I'd like to keep the job queue in-memory without having to make calls to redis
If you don't need distribution and delayed jobs, You'd better use a control flow module like async
.
If redis isn't required (as it seems to be shown here) then why is it listed in the package.json?
I ask because couldn't you just not use redis and specify redis.createClientFactory. Have itreturn a module that implements the redis API but that just stores the items in memory?
@Saevon that's what I ended up doing :-)
@JacksonGariety: but doesn't this package install redis anyways? that seems a bit wrong if redis isn't at all needed, in fact I would have just made the default be an in memory queue, with a setup for redis.
At the very least the redis should be removed from package.json
Should I perhaps open another ticket for this?
@Saevon in places where scaling is never needed, I use async.queue
. When may be needed in the future, I stub the redis client via the factory method.
I think it makes sense to make redis optional here, because it did take a good amount of time to implement async.queue
, but I won't be needing it anymore.
@JacksonGariety afaik async.queue
doesn't support retries and timeouts between them (always have to code it in yourself). Hence why I prefer this library. Also as you'd mentioned this can scale to use redis when needed with next to no work.
So I believe you should change this issue to request the following (unless thats not how issues work here):
- Make redis Optional
- If you don't supply the
redis
option, an in memory factory is used.
Hello Is it possible to do this now? it's more then a year since this issue was submitted. has anyone found solution to this?
any update on this?
@vinz243: The library itself hasn't really had any updates, so unless theres a PR I suspect this won't go in
is this issue still exists? weird