MENU

Fun & Interesting

What is a MESSAGE QUEUE and Where is it used?

Gaurav Sen 1,035,119 lượt xem 6 years ago
Video Not Working? Fix It Now

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 higher-level 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/coding-parrot/Low-Level-Design/tree/master/distributed-event-bus

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 Request-Response:
https://stackoverflow.com/questions/16715380/what-is-difference-between-asynchronous-http-request-and-synchronous-http-reques
http://www.enterpriseintegrationpatterns.com/patterns/conversation/RequestResponse.html

Message Queue:
http://blog.codepath.com/2013/01/06/asynchronous-processing-in-web-applications-part-2-developers-need-to-understand-message-queues/
http://highscalability.com/blog/2012/12/17/11-uses-for-the-humble-presents-queue-er-message-queue.html
https://www.cloudamqp.com/blog/2014-12-03-what-is-message-queuing.html
https://www.rabbitmq.com/getstarted.html

Load Balancing:
https://www.youtube.com/watch?v=zaRkONvyGr8

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

#message-queue #system-design #scalability #server

Comment