What is the difference between an event bus (engine) and a message queue?

what"s the difference between an event bus (engine) and a message queue?

Sep.07,2021

event bus contains multiple message queues, that is, all events are received, and internal logic determines which message queue to push to


try to answer:

they have different roles in the system architecture.

  • eventbus, which is the event distribution center, is responsible for collecting and distributing events. It itself does not consume events.
  • mq, is generally an event handler, and after receiving the event, it consumes it internally.

eventbus can dispatch collected events to heterogeneous consumer (such as mq) to handle.

of course, event bus is a pattern, and mq is a technology. You can modify mq and let mq realize the function of event bus, then the modified mq can also be used as event bus at this time.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50833-43d75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50833-43d75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?