Why Your Bank App Says "Successful" Before the SMS Arrives
When you drop your clothes at the dry cleaner, nobody asks you to wait at the counter while they wash, dry and iron everything.
They hand you a ticket and say, "We'll call you when it's ready."
You go about your day. The work still happens. It just doesn't happen while you stand there waiting.
That simple idea is behind one of the most important patterns in modern software. It's the reason your banking app can say "Transfer successful" in about a second, while the SMS alert, the receipt and the rewards points arrive a few moments later.
Engineers call it asynchronous processing , and the tool that makes it work is the message queue .
In this article, I'll explain what a message queue is, why payment systems depend on it, and the rules experienced engineers follow so that nothing gets lost in between.
What must happen now, and what can happen next
When you tap "Send" on a transfer, a lot happens.…