Skip to content
Web Design & Development

Message Brokers, Done Properly

Systems that pass messages between services, decoupling producers from consumers.

MediaScaleUp Editorial Team 2 min read 13 views
Message Brokers, Done Properly

Where most projects go wrong

The usual mistakes:

  • Assuming exactly-once delivery
  • Messages with no dead letter path
  • Unmonitored queues
  • Consumers that fail silently

What good looks like instead

  • Make consumers idempotent
  • Configure dead letter queues
  • Monitor queue depth and age
  • Decide ordering requirements explicitly
  • Test consumer failure and retry
What to do and what to avoid with message brokers, side by side
Good practice against the usual mistakes, from the sources listed below.

Why it matters

Brokers smooth traffic spikes and decouple systems, but they introduce ordering, retry and duplication questions.

The specs that matter

Published figures for Message Brokers
MeasureFigure
Queues and topicspoint-to-point and publish-subscribe serve different needs
Delivery guaranteesat-least-once delivery means duplicates happen
Dead lettersmessages that cannot be processed need somewhere to go
Orderingstrict ordering constrains throughput

Knowing when to hand it over

Tip: Bring in help when services need reliable asynchronous communication.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Web Design & Development