Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.68 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.68 KB

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