15 Free YouTube subscribers for your channel
Get Free YouTube Subscribers, Views and Likes

What is a MESSAGE QUEUE and Where is it used?

Follow
Gaurav Sen

Messaging Queues are widely used in asynchronous systems. Message processing in an asynchronous fashion allows the client to relieve itself from waiting for a task to complete and, hence, can do other jobs during that time. It also allows a server to process its jobs in the order it wants to.

Messaging Queues provide useful features such as persistence, routing, and task management. We will be discussing the benefits of a message queue in future videos.

A system having a message queue can move to higherlevel requirements while abstracting implementation details of message delivery and event handling to the messaging queue.

The 'queue' is just a name for this data structure. In practice, it could be storing messages using any policy. Some examples of message queues are Kafka and RabbitMQ. They are widely used for various purposes, such as command query request segregation (CQRS) and event sourcing.

00:00 Pizza Shop Example
01:40 Benefits of Asynchronous Processing
02:44 Scaling Shops (Horizontally)
03:10 Fault Tolerance
04:09 Features of a message queue
08:38 Encapsulation
09:38 Thank you!

Code: https://github.com/codingparrot/Low...

Looking to ace your next interview? Try this System Design video course!
https://interviewready.io

With video lectures, architecture diagrams, capacity planning, API contracts, and evaluation tests. It's a complete package.

Asynchronous RequestResponse:
https://stackoverflow.com/questions/1...
http://www.enterpriseintegrationpatte...

Message Queue:
http://blog.codepath.com/2013/01/06/a...
http://highscalability.com/blog/2012/...
https://www.cloudamqp.com/blog/20141...
https://www.rabbitmq.com/getstarted.html

Load Balancing:
   • What is CONSISTENT HASHING and Where ...  

You can find me here:
  / gkcs0  
https://www.quora.com/profile/Gaurav...
https://github.com/gkcs/

#messagequeue #systemdesign #scalability #server

posted by forvitnukn