Member-only story
Practice of Message Queuing in System Design
This article discusses message queues, scenarios, design, and practice in system design for developers and architects.
Imagine an online store where every time a customer places an order, we need to:
- Process payment.
- Update inventory.
- Send confirmation emails, text messages, etc.
Immediately carrying out all these operations, especially during peak traffic periods, may reduce the customer experience. under these circumstances, There are a large number of applications involved We cannot handle all events at once.
Of course, we can expand the server to handle these large amounts of application events, but if we don’t have to handle all events at once, it’s best to queue these events and process them later.
Basic architecture of message queue
The basic architecture of a message queue is very simple.