Reliability · Intermediate · 10 min

Message Queues

Separate accepting a job from completing it, then recover from worker failure.

STEP 1 / 11
Block the web request on slow work — isometric concept diagramSeparate accepting work from completing it. Components: 1. Uploader. Representative clients, not a literal user count; 2. Web handler. Logical component or processing boundary. Connections: 1. Uploader to Web handler: Block the web request on slow work; 2. Web handler to Uploader: Reply: Web handler. Illustrations are conceptual, not deployed capacity or user counts.Uploader → Web handler: Block the web request on slow work1Web handler → Uploader: Reply: Web handler2Uploader: representative traffic illustration; figure count is not a workload measurement.1UploaderRepresentative clients, not aliteral user countWeb handler: Logical component or processing boundary2Web handlerLogical component or processingboundary
1Uploader2Web handler
  1. 1Uploader → Web handlerRequestBlock the web request on slow work
  2. 2Web handler → UploaderReplyReply: Web handler

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Uploader + Web handler highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • Distinguish acceptance from completion.
  • Explain competing workers and redelivery.
  • Plan idempotency, retries and backlog control.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

Queue-based load leveling ↗

Publish–Subscribe ↗

Further reading

Microsoft · Queue-based load leveling ↗