# Message Bus

**Message Bus** in a nutshell is a pattern that enables communication between various components of a system by acting as an intermediary for exchanging messages. Message Bus Architecture is based on the principle of decoupling different components of a system by using a message broker for communication.

And that is what Ylem is perfectly made for.

Typically Message Bus implements one of the following models:

* [Publish-subscribe](/use-cases/messaging-patterns/publish-subscribe-channel.md)
* [Point-to-point](/use-cases/messaging-patterns/point-to-point-channel.md)

Click on the links above :point\_up: to read about how both patterns can be implemented with Ylem.

<figure><img src="/files/7OulViwdn3WYtInVh0Sr" alt=""><figcaption><p>Publish-subscribe pattern implementation with Ylem</p></figcaption></figure>

<figure><img src="/files/zS3V5oH35Y7oyK1Ekcg4" alt=""><figcaption><p>Point-to-point pattern implementation with Ylem</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ylem.co/use-cases/messaging-patterns/message-bus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
