ArchitectureSample article
When a queue earns its place
Decoupling work can help, provided ordering, retries and operational ownership are part of the decision.
A queue can absorb a burst of work or separate a slow operation from an immediate response. It also introduces a new set of questions about time and failure.
Name the benefit
Be specific about what the queue changes. Perhaps a slow notification no longer delays a user request, or a temporary outage no longer loses work. Compare that benefit with a simpler synchronous path.
Own the failure path
Decide how retries work, whether order matters and how a duplicate is recognised. Somebody also needs to notice messages that cannot be processed and know what to do with them.
- Make handlers safe to repeat where required.
- Keep failed work inspectable.
- Measure the age of waiting work, as well as its volume.
Explain the wait to the user
If the operation is no longer immediate, its interface should say so. Give the person a stable status and a way to return to it. Infrastructure choices have visible consequences.
A note from the room.This is a placeholder article for testing the reading experience.
↑