QUEUES: Channelling more than 165K Data/hour between Systems
What are queues?
Queues are components that manage asynchronouscommunication between different parts of the system. They allow todecouple the production of messages (or tasks) from their consumption. This facilitates the management of tasks that do not need to be processed immediately, resulting in greater scalability and fault tolerance.
Case Study
The use of queues has facilitated the communication of thousands of pieces of data between different systems almost immediately:
- 12K shipments per hour
- 2K collected per hour
- 135K sending situations (states) per hour
- 16K pick-up situations (states) per hour
Use Cases
- Communication between services: Systems such as ActiveMQ, RabbitMQ, Apache Kafka , Google Pub/Sub, etc. allow different services to communicate with each other by exchanging messages asynchronously.
- Background processing: Tasks that do not need to be processed immediately (such as sending emails or generating reports) can be placed in a queue to be processed later.
- Load balancing: Queues can help distribute the workload among several servers or processes in a balanced way.
Advantages
- FIFO (First In, First Out): In a queue, messages or tasks are processed in the same order in which they were added. The first one in is the first one out.
- Decoupling: They allow producers (components that generate messages) and consumers (components that process those messages) to operate independently. This reduces the time dependency between them.
- Asynchrony: Messages are queued, and processing takes place later, allowing the producing components not to wait for the consumers to finish their task.
- Persistence: In many systems, queues store messages persistently, which means that messages are not lost even if a system failure occurs (allowing retries on the target systems of the information in case of failure).
- Scalability: They facilitate the scalability of the system because they allow the workload to be distributed among multiple consumers that can process messages in parallel.
Want to see more case studies?
Write us
We can help you
Send us a message and we will contact you as soon as possible:
Follow us:
Luce Innovative Technologies