# apache/artemis-examples architecture

> Architecture diagram of the GitHub repository apache/artemis-examples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apache/artemis-examples
- Repository: https://github.com/apache/artemis-examples

## Overview

This repository is a catalog of Apache Artemis feature examples, not the broker implementation itself. The documented workflow is to prepare a broker distribution, then run an individual example whose client interacts with a broker instance. The tree shows a substantial set of AMQP broker-connection examples, including federation topologies, bridging, and message send/receive; source excerpts were unavailable, so relationships beyond the README’s general workflow are not asserted.

Main entry points: [`examples/features/broker-connection`](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection) (Connection examples), [`artemis-distribution`](https://github.com/apache/artemis-examples/tree/main/artemis-distribution) (Broker distribution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Example runtime"]
  node_distribution["Broker distribution"]
  node_broker["Broker instance"]
end

subgraph group_connections["Broker connections"]
  node_connection_examples["Connection examples"]
  node_bridge["AMQP bridge"]
  node_sending["AMQP multicast send"]
  node_receiving["AMQP receive"]
end

subgraph group_federation["Federation examples"]
  node_federation["AMQP federation"]
  node_fanout["Multicast fanout"]
  node_hub_spoke["Hub and spoke"]
  node_ring["Federation ring"]
  node_queue_federation["Queue federation"]
end

subgraph group_other["Other examples"]
  node_ha_examples["HA examples"]
end

node_user(("Example user"))

node_user -->|"prepares"| node_distribution
node_user -->|"runs example"| node_connection_examples
node_connection_examples -->|"references"| node_distribution
node_distribution -->|"creates instance"| node_broker
node_connection_examples -->|"client interacts"| node_broker

click node_distribution "https://github.com/apache/artemis-examples/tree/main/artemis-distribution"
click node_broker "https://github.com/apache/artemis-examples/tree/main/artemis-distribution"
click node_connection_examples "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection"
click node_bridge "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-bridge"
click node_sending "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-sending-messages-multicast"
click node_receiving "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-receiving-messages"
click node_federation "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation"
click node_fanout "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-fanout"
click node_hub_spoke "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-hub-spoke"
click node_ring "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-ring"
click node_queue_federation "https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-queue-multiple-brokers"
click node_ha_examples "https://github.com/apache/artemis-examples/tree/main/examples/features/ha"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_distribution,node_broker,node_user toneBlue
class node_connection_examples,node_bridge,node_sending,node_receiving toneAmber
class node_federation,node_fanout,node_hub_spoke,node_ring,node_queue_federation toneMint
class node_ha_examples toneRose
```

## Components

### Example runtime

- [Broker distribution](https://github.com/apache/artemis-examples/tree/main/artemis-distribution): `artemis-distribution`
- [Broker instance](https://github.com/apache/artemis-examples/tree/main/artemis-distribution): `artemis-distribution`

### Broker connections

- [Connection examples](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection): `examples/features/broker-connection`
- [AMQP bridge](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-bridge): `examples/features/broker-connection/amqp-bridge`
- [AMQP multicast send](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-sending-messages-multicast): `examples/features/broker-connection/amqp-sending-messages-multicast`
- [AMQP receive](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-receiving-messages): `examples/features/broker-connection/amqp-receiving-messages`

### Federation examples

- [AMQP federation](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation): `examples/features/broker-connection/amqp-federation`
- [Multicast fanout](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-fanout): `examples/features/broker-connection/amqp-federation-multicast-fanout`
- [Hub and spoke](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-hub-spoke): `examples/features/broker-connection/amqp-federation-multicast-hub-spoke`
- [Federation ring](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-multicast-ring): `examples/features/broker-connection/amqp-federation-multicast-ring`
- [Queue federation](https://github.com/apache/artemis-examples/tree/main/examples/features/broker-connection/amqp-federation-queue-multiple-brokers): `examples/features/broker-connection/amqp-federation-queue-multiple-brokers`

### Other examples

- [HA examples](https://github.com/apache/artemis-examples/tree/main/examples/features/ha): `examples/features/ha`

### Other components

- **Example user**

## Connections

- Example user → Broker distribution: prepares (evidence: `README.md`)
- Example user → Connection examples: runs example (evidence: `README.md`)
- Connection examples → Broker distribution: references (evidence: `README.md`)
- Broker distribution → Broker instance: creates instance (evidence: `README.md`)
- Connection examples → Broker instance: client interacts (evidence: `README.md`)
