-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background & scheduled jobs #58
Comments
Just stumbled on https://github.com/rschmukler/agenda |
Re: the above, looks like it's currently not DB-agnostic (Mongo specific atm) but there is some interest in changing that: agenda/agenda#348 No word from the author on that front though ... I'd be interested in seeing this fleshed out as I could use it for the help wanted app ... |
Agenda looks interesting. Might be worth investigating the LOE of adding database adapters to it so we could use it. In general, my thoughts here are:
Node's asynchronous model makes things interesting - you could potentially do background process in the same process as the web server. Of course, that exposes you to the risk of a bg job blocking the CPU and thus incoming web requests. So supporting in-process bg jobs might be a nice optional feature, but we'll need some non-blocking answer as well. It looks like agenda doesn't manage a worker pool either, which is something Denali would need to support. In my past research, I didn't find any single solution for node bg jobs that satisfied everything, but there might be a way we can leverage something like Agenda to get us 70% there. |
Closing in favor of http://discuss.denalijs.org/t/background-scheduled-jobs/27 |
The framework should provide a top level abstraction similar to ActiveJob for Rails, where different job backend can plug into the same public API.
The text was updated successfully, but these errors were encountered: