首页 > 其他 > 详细

Message Queue vs Message Bus — what are the differences?

时间:2020-06-12 12:38:53      阅读:60      评论:0      收藏:0      [点我收藏+]

Message Queue vs Message Bus — what are the differences?

Message Bus

A Message Bus is a messaging infrastructure to allow different systems to communicate through a shared set of interfaces(message bus).

技术分享图片

 

 

技术分享图片

Source: EIP

Message Queue

The basic idea of a message queue is a simple one:

  • Two (or more) processes can exchange information via access to a common system message queue.

  • The sending process places via some (OS) message-passing module a message onto a queue which can be read by another process

Source: Dave Marshall

技术分享图片

技术分享图片

 

 

 

 

Difference

Message Queue contains FIFO(first in first out) rule whereas in Message Bus does not.

Conclusion

Both LOOK like doing same kind of work - passing messages between two Applications or Modules or Interfaces or Systems or Processes, except small difference of FIFO

 

Message Queue vs Message Bus — what are the differences?

原文:https://www.cnblogs.com/chucklu/p/13098418.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!