> For the complete documentation index, see [llms.txt](https://marblejs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://marblejs.gitbook.io/docs/messaging.md).

# Messaging

- [Core concepts](https://marblejs.gitbook.io/docs/messaging/core-concepts.md): The core idea of @marblejs/messaging module is focused around reacting to incoming events.
- [Events](https://marblejs.gitbook.io/docs/messaging/core-concepts/events.md)
- [Effects](https://marblejs.gitbook.io/docs/messaging/core-concepts/effects.md)
- [Microservices](https://marblejs.gitbook.io/docs/messaging/microservices.md): Using a dedicated @marblejs/messaging module, Marble.js offers a robust and unified architecture for building event-based microservices.
- [AMQP (RabbitMQ)](https://marblejs.gitbook.io/docs/messaging/microservices/rabbitmq.md): AMQP is an open standard application layer protocol for message-oriented communication, i.e. implemented by RabbitMQ message-broker.
- [Redis Pub/Sub](https://marblejs.gitbook.io/docs/messaging/microservices/redis-pub-sub.md): Redis Pub/Sub implements the messaging system where the publishers sends the messages while the subscribers receive them.
- [CQRS](https://marblejs.gitbook.io/docs/messaging/cqrs.md)
- [WebSockets](https://marblejs.gitbook.io/docs/messaging/websockets.md): @marblejs/websockets module implements the RFC 6455 WebSocket protocol, providing full-duplex communication channels over a single TCP connection.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://marblejs.gitbook.io/docs/messaging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
