# 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="https://4257445316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fnf3YeoQlQerc93GsC2Me%2Fuploads%2FkgzhbjiyG1jnSwrGfHl5%2FMB_architecture%20(1).png?alt=media&#x26;token=5c6d07e1-23e3-4b85-be4c-ab70f9943d60" 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.
