Message Queues

In Simple Terms

Zaid Alissa Almaliki
2 min readOct 19, 2022

In real life, something as simple as a bakery has a queuing system: orders are queued by waiters and the baker processes them by dequeueing. Then, when pastries are made, the backer put them into the queue and waiters dequeue them to the tables.

In Technical Terms

Things that do not require a direct request/response communication can benefit from simply being queued and left a back-end system for processing. Simply described, a message queue is a mechanism for asynchronous communication between two distinct computer processes. The consumer continuously checks the queue to see whether new messages have been added, while the producer adds messages to the queue.

Simple Message Queue

A message is a piece of data, not a piece of code. This data may be created by the producer side of the code, and it can be handled and parsed by the consumer side of the code. Publisher-subscriber situations may be found anywhere, in real life as well as on the Web or in any other application.

A scalable architecture is created through separating apps and asynchronous communication. Message Queues can accommodate a large number of producers and consumers with ease. This architecture makes it simple for message queues to handle data spikes and ensure that data is handled, if not straight away, then at a later time.

Thanks for reading. If you loved this article, feel free to hit that follow button so we can stay in touch.

This article is possible because of these references. some external links in this post are affiliate.

Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems

System Design Interview — An insider’s guide

Ngnix load balancer

--

--

Zaid Alissa Almaliki
Zaid Alissa Almaliki

Written by Zaid Alissa Almaliki

Data Engineer, LinkedIn and Twitter Top Voice. Contributing to leading platforms like Towards Data Science.

No responses yet