Code Monkey home page Code Monkey logo

Comments (4)

knownasilya avatar knownasilya commented on August 23, 2024

Just stumbled on https://github.com/rschmukler/agenda

from core.

acorncom avatar acorncom commented on August 23, 2024

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 ...

from core.

davewasmer avatar davewasmer commented on August 23, 2024

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:

  • We could take an adapter style approach here (a la Rails ActiveJob), where Denali doesn't know or care how a job is run, it just provides the interface for specifying jobs, and it's up to the user to provide runners.
  • The other approach is that we bake in runners as well, so that Denali will schedule and execute the jobs.

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.

from core.

davewasmer avatar davewasmer commented on August 23, 2024

Closing in favor of http://discuss.denalijs.org/t/background-scheduled-jobs/27

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.