Skip to content

In this lesson, we'll learn how to implement a queue using @rlanz/bull-queue package for AdonisJS 6. We'll create a job to send welcome emails to new users, replace AdonisJS' in-memory mail queue with @rlanz/bull-queue, and hook into the AdonisJS licecycle to start and stop the queue listener with our web server.

License

Notifications You must be signed in to change notification settings

adocasts/adonisjs-6-bull-queue-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adocasts

How To Easily Add and Implement a Queue in AdonisJS 6

In this lesson, we'll learn how to implement a queue using @rlanz/bull-queue package for AdonisJS 6. We'll create a job to send welcome emails to new users, replace AdonisJS' in-memory mail queue with @rlanz/bull-queue, and hook into the AdonisJS licecycle to start and stop the queue listener with our web server.

(Coming Soon)

You'll learn:

  • How to install @rlanz/bull-queue for AdonisJS 6
  • How to create a job
  • How to dispatch a job into the queue
  • How to replace AdonisJS' in-memory mail queue with @rlanz/bull-queue for use with mail.sendLater
  • How to hook into AdonisJS 6 lifecycle events and programmatic command execution to start and stop the queue listener with your web server

Curious where to look?

  • Jobs: /backend/app/jobs/*.ts
  • Dispatch: /backend/app/controllers/auth_controller.ts -> register()
  • SendLater Queue: /backend/start/mail.ts
  • Start/Stop With Server: /backend/start/queue.ts

YouTube Badge Twitter Badge Twitch Badge

About

In this lesson, we'll learn how to implement a queue using @rlanz/bull-queue package for AdonisJS 6. We'll create a job to send welcome emails to new users, replace AdonisJS' in-memory mail queue with @rlanz/bull-queue, and hook into the AdonisJS licecycle to start and stop the queue listener with our web server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published