---
id: "axon-server"
type: "component"
kind: "event-store"
provider: "default"
category: "messaging"
docs: "https://docs.axoniq.io/"
url: "https://localhost:3000/catalogue/components/axon-server"
---

# Axon Server

Event store and message router for Axon Framework applications.

| | |
|---|---|
| Provider | [default](https://localhost:3000/catalogue?provider=default) |
| Kind | [Event store](https://localhost:3000/catalogue/kinds/event-store) |
| Category | Messaging |
| Official docs | [https://docs.axoniq.io/](https://docs.axoniq.io/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `commandRouting` | boolean | — | no | true | inherited |
| `journaled` | boolean | — | no | true | **true** |
| `managed` | boolean | — | no | false | inherited |
| `replication` | enum | `none`, `raft`, `primary-replica` | no | "none" | **"none"** |
| `role` | enum | `journal`, `sequencer` | no | "journal" | **"journal"** |
| `snapshotIntervalEvents` | integer | — | no | — | inherited |
| `storage` | enum | `mmap`, `rocksdb`, `database` | no | "database" | **"mmap"** |

Bold values are the ones this component pins.

## Rules that apply · 1

### Stateful engine pinned to a single zone `stateful-engine-pinned-to-single-zone` (error)

- Page: https://localhost:3000/catalogue/rules/stateful-engine-pinned-to-single-zone.md
- Why: A matching engine, coordination service or event store living in exactly one availability zone, with no failover and no replication, is lost with that zone. Everything that depends on it stops with it.
- Applies to: every node of kind matching-engine, coordination-service or event-store
- Message: '{{node.id}}' is pinned to a single availability zone with no failover or replication.

It fires when:

- all of these hold:
  - the node sits inside exactly 1 availability-zone group
  - any of these hold:
    - the node's `failover` is "none"
    - the node's `replicated` is false
    - the node's `replication` is "none"

## Other products of the same kind · 4

- [Apache BookKeeper](https://localhost:3000/catalogue/components/bookkeeper.md) `bookkeeper` — default
- [Generic event store](https://localhost:3000/catalogue/components/event-store.md) `event-store` — default
- [EventStoreDB](https://localhost:3000/catalogue/components/eventstoredb.md) `eventstoredb` — default
- [Raft event log](https://localhost:3000/catalogue/components/raft-event-log.md) `raft-event-log` — default

## Use it in a design

```yaml
nodes:
  - { id: "axon-server", component: "axon-server" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Axon Server: event store plus command/query router for Axon Framework. Standard edition is a single
# node with segmented file storage; Raft clustering is an enterprise option.
schemaVersion: "1"
type: "component"
id: "axon-server"
kind: "event-store"
provider: "default"
docs: "https://docs.axoniq.io/"
defaults:
  replication: "none"
  journaled: true
  storage: "mmap"
  role: "journal"
properties:
  commandRouting:
    type: "boolean"
    default: true
```

Human page: https://localhost:3000/catalogue/components/axon-server
