# Middlemen

In the SitecoreDXG ecosystem, the *middleman* is responsible for retrieving the serialized data from Sitecore and forwarding it along to the SitecoreDXG Generation Service for generation.

Natively, middlemen are independent programs that run separately from the SitecoreDXG Generation Service, and the node-based [RabbitMQ Middleman](https://sitecoreuml.gitbook.io/sitecoredxg/architecture/understanding-the-default-rabbitmq-middleman-and-trigger) is included by default. It is worth noting, however, that additional middlemen can be added at any time and can be written in PowerShell, C#, Node.js, Java, Python, or any other language capable of calling the serializer (via HTTP request, by default) and passing the response to the trigger (via RabbitMQ by default).&#x20;


---

# 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://sitecoreuml.gitbook.io/sitecoredxg/architecture/middlemen.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.
