Menu

Message queues and asynchronous processing, explained through a trip to the dry cleaner
📰

Message queues and asynchronous processing, explained through a trip to the dry cleaner

DEV Community: dotnet·Odumosu Matthew·9 days ago
#Y7IA2dYA
#devtodotnet#devto#dev#message#service
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.