Linux serverlinux web serverNETWORK ADMINISTRATIONS

What is a Message Queue and Where is it used?

Messaging Queues are widely use 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 it’s 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.

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://get.interviewready.io

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

Use the coupon code ‘earlybird’ for a 20% discount!

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:

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:

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

source

by Gaurav Sen

linux web server

Leave a Reply

Your email address will not be published. Required fields are marked *