DEV Community

Kay Ashaolu
Kay Ashaolu

Posted on Originally published at systemthinkinglab.ai

A queue is not for speed

You reach for a queue to make things faster. A queue never makes a piece of work finish sooner.

What it does is make failure survivable. When you pay for something, the payment API answers fast because almost nothing it cares about happens while you wait. The receipt email, the webhook, the analytics event and the fraud check all sit in a queue. If one of them is down, the payment still goes through.

So the test is not "is this slow?" It is "if the thing on the other end breaks, can this request still succeed?"

The other blocks do the work. The queue keeps the work alive.

Kay

P.S. If you want the "can this be done later?" test with real examples, the queues article walks through it, free: https://systemthinkinglab.ai/learn/building-blocks/queues/


This note goes out by email Sunday to Friday. Read more at systemthinkinglab.ai.

If you want to see how products like Instagram and Netflix are designed, take your free 5-day course: the 7 building blocks.

Top comments (0)