Introduction

Client
   ↓
API Server (Producer)
   ↓
BullMQ Queue
   ↓
Redis Server
   ↓
Worker Server
- processes job in background
   ↓
Process Job

Scenarios

BullMQ Job Lifecycle

waiting → active → completed
              ↓
           failed
State Meaning
waiting Job is in queue
active Worker is processing the job
completed Job finished successfully
failed Job failed during processing