Message Brokers

Pragya Sapkota
2 min readMar 14, 2023

--

Message brokers are a system that eases the communication between different applications, systems, and services to exchange information by translating them between formal messaging protocols. With these brokers, the interdependent services can interact even if they are in different languages or are implemented on different platforms. These messages can be validated, stored, routed, or delivered to the designated receiver.

Message brokers are the intermediate medium between various applications where the senders are not aware of the receivers. The message is sent without any knowledge about the receivers or their locations. With this, it decouples the processes and services within the system.

Some of the common examples of message brokers are NATS, Apache Kafka, RabbitMQ, ActiveMQ, etc.

Models

There are two models of message brokers.

1. Point-to-Point Messaging

Message queues implement a point-to-point messaging pattern where there is a one-to-one relationship between the one who sends and the one who receives.

2. Publish-Subscribe Messaging

There is a producer of each message topic and consumers subscribe to topics to receive the message. This pattern is called the Publisher-Subscriber pattern — pub/sub.

Message Brokers Vs. Event Streaming

Message Broker Vs. Enterprise Service Bus (ESB)

I hope this article was helpful to you.

Please remember to applaud this article and follow me!!!

Any kind of feedback or comment is welcome!!!

You can also subscribe to my stories via email to get notified whenever I bring out an article on a new subject.

Thank you for your time and support!!!!

Keep Reading!! Keep Learning!!!

--

--