Skip to content

Broker vs. Brokerless Messaging Architecture

Posted on:September 2, 2023 at 03:23 PM

In brief, Broker messaging architecture means we have a centralized broker acting like a mediator. In the brokerless messaging architecture, no broker exists and participants communicate directly with themselves.

broker-vs-brokerless-cover Photo by Emre Unsplash

Example with broker message queues: RabbitMQ, IBM MQ

Example brokerless message queues: ZeroMQ, NanoMsg

In the brokerless messaging queues separate broker process does not exist.

If we use brokerless messaging queues, we probably should consider discovery, management, and availability. For example to discovery, finding the service that the message will be sent, to and what should be done if that service is down (e.g. storing messages and sending to the service when it is ready)

Broker messaging queues provide low coupling because services do not know each other.

Broker messaging queues require more network power than brokerless messaging queues.

Broker Messaging Queues

rabbitmq-logo

Advantages

Disadvantages

Brokerless Messaging Queues

zeromq-logo

Advantages

Disadvantages

In summary, the choice between broker-based and brokerless messaging depends on the specific requirements and constraints of the system. Consider factors such as scalability, reliability, performance, and the level of control and complexity.

References