Next

Email job queue

DesignEasy30 min

Your task

Design a simple background job/queue for sending emails in a small SaaS app (signup confirmations, password resets, notifications). When something triggers an email, the web request should return immediately rather than waiting on the mail provider. Volume is a few thousand emails a day. Describe how a job gets enqueued, processed, and what happens when sending fails.

It covers

  • Job queue
  • Email delivery
  • Retries