Agenda is a job scheduling for Node

Agenda is a job scheduling for Node
Average rating: 0
(0 votes)

Node.js an open-source JavaScript run-time environment that Syndicode uses in many of our projects. Today we are going to share with you an interesting tool. Agenda is a job scheduling for Node and it has a lot of things to offer.

Agenda offers:

  • Minimal overhead. Agenda aims to keep its code base small.
  • Mongo backed persistence layer.
  • Promises based API
  • Scheduling with configurable priority, concurrency, and repeating
  • Scheduling via cron or human readable syntax.
  • Event backed job queue that you can hook into.
  • Agendash: optional standalone web-interface
  • Agenda-rest: optional standalone REST API

An instance of an agenda will emit the following events:

  • ready – called when Agenda mongo connection is successfully opened and indices created. If you’re passing agenda an existing connection, you shouldn’t need to listen for this, as agenda.start() will not resolve until indices have been created. If you’re using the db options, or call database, then you may still need to listen for the ready event before saving jobs. agenda.start() will still wait for the connection to be opened.
  • error – called when Agenda mongo connection process has thrown an error

More details on Agenda you can find here.

And we recommend you the checklist of 23 Node.js. security best practices that were collected from all top-ranked articles around the globe.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111