# DDHub Message Broker

## Overview

The Message Broker is a server that provides message routing, persistence, and delivery for a seamless data exchange between an organization and its participants via their respective Client Gateways.

### Architecture (placeholder)

<figure><img src="/files/5my5OqcFFLdIYqOMvvhq" alt=""><figcaption></figcaption></figure>

### Components

#### DID Auth Proxy

The DID auth proxy provides an authorization server and an `nginx` instance to allow applications to integrate the Energy Web DID solution into any RESTful API service without changing its source code.

#### Master Data and Message Metadata Storage

#### Large File Storage

#### NATS JetStream

JetStream is a built-in persistence engine for NATS which enables messages to be stored and replayed at a later time. Messages can be captured and replayed to consumers as needed.


---

# 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.energyweb.org/energy-solutions/digital-spine-by-energy-web/component-guides/ddhub-message-broker.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.
