Node.js · Middle · Question 71 of 75
Why use a job queue like BullMQ for sending emails after sign-up?
- 1Queues make emails smaller
- ✓Correct answer: The API responds quickly, and the job is retried if the email service fails
- 3Node.js can't send emails from request handlers
Explanation
Slow or unreliable work goes to a background worker. Jobs should be idempotent, since a retry can repeat a job that partly succeeded.