ArticleslgStudy

computer science

Message broker

Message broker is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Message broker rather than just read about it. In short: A message broker (also known as an integration broker or interface engine) is an intermediary computer program module that translates a message from the formal messaging protocol of the sender to the formal messaging protocol of the receiver. Message brokers are elements in telecommunication or computer networks where software applications communicate by exchanging formally defined messages.

Message broker — main illustration
Message broker — illustration

Key takeaways

  • Message broker belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Message broker to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Message broker from memory before moving on to harder problems.

Reference excerpt

A message broker (also known as an integration broker or interface engine) is an intermediary computer program module that translates a message from the formal messaging protocol of the sender to the formal messaging protocol of the receiver. Message brokers are elements in telecommunication or computer networks where software applications communicate by exchanging formally defined messages. Message brokers are a building block of message-oriented middleware (MOM) but are typically not a replacement for traditional middleware like MOM and remote procedure call (RPC).

Overview A message broker is an architectural pattern for message validation, transformation, and routing. It mediates communication among applications, minimizing the mutual awareness that applications should have of each other in order to be able to exchange messages, effectively implementing decoupling.

Purpose The primary purpose of a broker is to take incoming messages from applications and perform some action on them. Message brokers can decouple end-points, meet specific non-functional requirements, and facilitate reuse of intermediary functions. For example, a message broker may be used to manage a workload queue or message queue for multiple receivers, providing reliable storage, guaranteed message delivery and perhaps transaction management.

Life cycle The following represent other examples of actions that might be handled by the broker:

Route messages to one or more destinations Transform messages to an alternative representation Perform message aggregation, decomposing messages into multiple messages and sending them to their destination, then recomposing the responses into one message to return to the user Interact with an external repository to augment a message or store it Invoke web services to retrieve data Respond to events or errors Provide content and topic-based message routing using the publish–subscribe pattern Message brokers are generally based on one of two fundamental architectures: hub-and-spoke and message bus. In the first, a central server acts as the mechanism that provides integration services, whereas with the latter, the message broker is a communication backbone or distributed service that acts on the bus. Additionally, a more scalable multi-hub approach can be used to integrate multiple brokers.

Real-time semantics Message brokers that are purpose built to achieve time-bounded communications with end-to-end predictability allow for the development of real-time systems that require execution predictability. Frequently systems with real-time requirements involve interaction with the real world (robotics, vehicle automation, software-defined radio, et al.) The Object Management Group Real-time CORBA specification provides a theoretical foundation for predictable communications technologies by levying the following requirements:

For the purposes of this specification, "end-to-end predictability" of timeliness in a fixed priority CORBA system is defined to mean: respecting thread priorities between client and server for resolving resource contention during the processing of CORBA invocations; bounding the duration of thread priority inversions during end-to-end processing; bounding the latencies of operation invocations.

List of message broker software Amazon Web Services (AWS) Amazon MQ Amazon Web Services (AWS) Kinesis Apache Apache ActiveMQ Apache Artemis Apache Camel Apache Kafka Apache Qpid Apache Thrift Apache Pulsar Cloverleaf (Enovation Lifeline - NL) Comverse Message Broker (Comverse Technology) Coreflux Coreflux MQTT Broker Eclipse Mosquitto MQTT Broker (Eclipse Foundation) EMQX EMQX MQTT Broker Enduro/X Transactional Message Queue (TMQ) Financial Fusion Message Broker (Sybase) Fuse Message Broker (enterprise ActiveMQ) Gearman Google Cloud Pub/Sub (Google) HiveMQ HiveMQ MQTT Broker HornetQ (Red Hat) (Now part of Apache Artemis) IBM App Connect IBM MQ JBoss Messaging (JBoss) JORAM LavinMQ written in Crystal Microsoft Azure Service Bus (Microsoft) Microsoft BizTalk Server (Microsoft) MigratoryData (a publish/subscribe WebSockets message broker written to address the C10M problem ) NATS (MIT License, written in Go) NanoMQ MQTT Broker for IoT Edge Open Message Queue Oracle Message Broker (Oracle Corporation) ORBexpress (OIS) ORBexpress written in Ada ORBexpress written in C# ORBexpress written in C++ ORBexpress written in Java RabbitMQ (Mozilla Public License, written in Erlang) Redpanda (implement Apache Kafka API, written in C++) Redis An open source, in-memory data structure store, used as a database, cache and message broker SAP PI (SAP AG) SMC SMC Platform Solace PubSub+ Spread Toolkit Tarantool, a NoSQL database, with a set of stored procedures for message queues TIBCO Enterprise Message Service WSO2 Message Broker ZeroMQ

See also Broker injection Publish–subscribe pattern MQTT Comparison of business integration software Message-oriented middleware

References

Illustrations

Message broker: Sequence diagram for depicting the Message Broker pattern
Sequence diagram for depicting the Message Broker pattern

Worked examples

Example 1 — a first encounter with Message broker

Start with the simplest possible case. Write down what Message broker claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Message broker before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Message broker ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Message broker

In research
Message broker appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Message broker in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Message broker is common in secondary-school and first-year university syllabi. It links to neighbouring topics Message-oriented middleware, Middleware, Software design patterns, so understanding it makes those chapters shorter.
In everyday life
Look for Message broker outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Message broker” →

How to study Message broker in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Message broker means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Message broker out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Message broker in simple terms?

A message broker (also known as an integration broker or interface engine) is an intermediary computer program module that translates a message from the formal messaging protocol of the sender to the formal messaging protocol of the receiver. Message brokers are elements in telecommunication or com…

Why does Message broker matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Message broker?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Message broker.

Tags

  • Message-oriented middleware
  • Middleware
  • Software design patterns

Keep exploring