Learn Everything

Module · Backend Engineer

Queues & Async Work

Move the slow work off the request path - and survive the message arriving twice.

2 topics4 interactive tasks

TOPIC 01

Queue & Consumer Design

Topics, partitions and the consumer group that does the work.

What you'll practice

  • Design the Topic Layout — guided · beginner
  • Size the Consumer Group — practice · intermediate

A command you'll meet

cat ~/backend/queues/consumer.yaml

One consumer per partition is the rule that decides your throughput. Open the task below for the full walkthrough.

TOPIC 02

Failure Handling

Retries, dead letters and the deduplication that makes a redelivery harmless.

What you'll practice

  • Retry, Then Give Up — practice · intermediate
  • Make the Consumer Idempotent — challenge · advanced

A command you'll meet

cat ~/backend/queues/retry-policy.yaml

A message that fails forever is worse than one that fails once. Open the task below for the full walkthrough.