SystemTutor
About
Sign in
Loading course documentation…
SystemTutor

COURSES

  • Data Structures & Algorithms
  • CSS MasterclassNew course
  • System DesignNew course

PRACTICE

  • Algorithm practice
  • CSS practice

LEGAL

  • Privacy Policy
  • Terms of Service
  • About

© 2026 SystemTutor. All rights reserved.

Built with 🫶 by Shatlyk

System design
Asynchronous Work and MessagingResilience and Safe Retries Deliver a notification once Durable jobs and safe retriesSecurity and API BoundariesRate LimitingObservability and Operational Readiness Protecting and operating a live service
Reliable services

Deliver a notification once

A worker takes job 42 from a durable queue and asks a provider to send a notification.

A durable queue hands job 42 to a worker. An acknowledgement lets the broker delete its recovery copy. Follow the ticket through a worker crash, then try a timeout where the worker cannot tell whether the provider accepted a send. Each accepted, distinct send delivers one envelope.

Challenge 1 of 2

When should the worker acknowledge the job to survive a crash before sending?

The broker retries unacknowledged jobs. Watch the inbox after the worker restarts.IncorrectThe broker removes the job before the crash. The inbox stays empty.CorrectThe broker retains the unfinished job and delivers it to the restarted worker.
Preview · Event 1 of 7
42Durable queueTicket 42 retainedWorkerReadyProviderAwaiting sendInbox0 messages

Job 42 is waiting for delivery.The broker hands ticket 42 to the worker and keeps an unacknowledged copy.The worker acknowledges immediately. The broker deletes its ticket.The worker crashes before contacting the provider.The worker restarts with no job to recover.The recipient gets no notification.The inbox stays empty. Acknowledging early removed the recovery copy.

How is this practice?

Previous lessonResilience and Safe RetriesNext lesson Durable jobs and safe retries
Edit on GitHubReport on GitHub