---
id: "eventstoredb"
type: "component"
kind: "event-store"
provider: "default"
category: "messaging"
aliases: "KurrentDB"
docs: "https://docs.kurrent.io/"
url: "https://localhost:3000/catalogue/components/eventstoredb"
---

# EventStoreDB

Purpose-built event-sourcing database with streams, subscriptions and projections.

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

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `journaled` | boolean | — | no | true | **true** |
| `managed` | boolean | — | no | false | **false** |
| `projections` | 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

- [Axon Server](https://localhost:3000/catalogue/components/axon-server.md) `axon-server` — default
- [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
- [Raft event log](https://localhost:3000/catalogue/components/raft-event-log.md) `raft-event-log` — default

## Use it in a design

```yaml
nodes:
  - { id: "eventstoredb", component: "eventstoredb" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# EventStoreDB (Kurrent): purpose-built event-sourcing store with memory-mapped chunk files.
# Runs single-node by default; clustering and system projections are opt-in.
schemaVersion: "1"
type: "component"
id: "eventstoredb"
kind: "event-store"
provider: "default"
docs: "https://docs.kurrent.io/"
aliases: ["KurrentDB"]
defaults:
  managed: false
  replication: "none"
  journaled: true
  storage: "mmap"
  role: "journal"
properties:
  projections:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/components/eventstoredb
