- 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
dboptions, or call
database, then you may still need to listen for the
readyevent 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.