There was some blurring between the two concepts, as some products now support features that previously belonged to only one or the other category (for example, Azure Service Bus supports both approaches).
TURN
The message queue receives messages from the application and makes them available to one or more other applications using the first-in-first-out (FIFO) method. In many architectural scenarios, if application A should send updates or commands to applications B and C, separate message queues can be configured for B and C. A will write separate messages to each queue, and each dependent application will read from its own queue (message deleted when it is deleted). Neither B nor C should be available for A to send updates. Each message queue is constant, therefore, if the application restarts, it will begin to be pulled out of the queue as soon as it is online again. This helps break down dependencies between dependent systems and can provide greater scalability and fault tolerance for applications.
BUS
A message bus or service bus provides a method for one (or more) applications for transmitting messages to one or more other applications. There can be no first-order guarantee in the first order, and bus subscribers can come and go without the knowledge of the senders of the messages. In this way, application A can be written to send status updates to application B via the message bus. A C application was later written that could also benefit from these updates. Application C can be configured to listen on the message bus and take action based on these updates, as well as without the need to update application A. Unlike queues, in which the sending application explicitly adds messages to each queue, the message bus uses the publish / sign model. Messages are published on the bus, and any application that subscribes to this message will receive it. This approach allows applications to follow the open / closed principle, as they become open to future changes, while remaining closed for additional modification.
SOURCE
Jibran Oct 23 '17 at 12:19 2017-10-23 12:19
source share