# 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](https://docs.ylem.co/use-cases/messaging-patterns/publish-subscribe-channel)
* [Point-to-point](https://docs.ylem.co/use-cases/messaging-patterns/point-to-point-channel)

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

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F83ox2J6TuLaVdiN4GhyO%2FScreenshot%202024-05-03%20at%2014.04.49.png?alt=media&#x26;token=5149a8a4-0e36-4e1e-9ad5-6a428a5c2745" alt=""><figcaption><p>Publish-subscribe pattern implementation with Ylem</p></figcaption></figure>

<figure><img src="https://3180830455-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD0FT8l3QzMrw546vOdHU%2Fuploads%2F6HuUAYt0erkl0ZS7Pbqz%2FScreenshot%202024-05-01%20at%2010.26.21.png?alt=media&#x26;token=965ee69c-c179-43c5-8319-f3c42b8aa408" alt=""><figcaption><p>Point-to-point pattern implementation with Ylem</p></figcaption></figure>
