Course lesson 24 · Working with Queues

Advanced Configuration: Delay, Retries & Dead Letter

One study unit · Read, recall, then practice · Original video 00:13:04

This lesson extends queue operation with delayed delivery, retry configuration, and a dead-letter recovery path. The instructor deliberately breaks the consumer, observes failed events arriving in a paused dead-letter queue, restores the handler, and resumes delivery to recover the records into D1. It also distinguishes code organisation from deployment topology: producer and consumer may share one Worker or live in separate services.

Primary source: course video 24 · Supplied English subtitles · 00:13:04.

Understand the idea

What the course does

  1. Review send options, including content representation and a delivery delay.
  2. Inspect consumer configuration for maximum retries and the delay between attempts.
  3. Create a staging dead-letter queue, pause delivery, and attach it to the main consumer configuration.
  4. Temporarily throw a test error, deploy, trigger clicks, and inspect messages collected in the dead-letter queue.
  5. Configure the data-service Worker to consume the dead-letter queue as well, with the demonstration retry setting.
  6. Restore and deploy the working handler before resuming delivery; confirm the D1 row count increases as queued failures are recovered.

Watch for

Recall before revealing

Why fix the consumer before resuming a paused dead-letter queue?

Reveal the explanation

Resuming sends those failed events back to processing; if the original defect remains, recovery will fail again and may exhaust the new retry policy.

Try it

Write a five-step recovery checklist for a temporary database outage, from detecting dead-letter messages to confirming their records were saved.

Check your result

The checklist includes investigation, a verified fix, controlled replay, outcome checks, and duplicate-handling considerations.

Practice prompts and answer checks are added teaching material. Answer from memory first, then compare and explain any difference.

Rewatch only what you need

Open this lesson in your original course library and seek to the times below. Videos are not hosted on this site.

Companion primary documentation: Queues delivery guarantees. For recorded API names, commands, limits, and prices, check the version you use.

← Previous   Next →