Are you an LLM? You can read better optimized documentation at /reference/config/eventsourcing.md for this page in Markdown format
Event Sourcing
EventStoreProperties
- Configuration class: EventStoreProperties
- Prefix:
wow.eventsourcing.store
| Name | Data Type | Description | Default Value |
|---|---|---|---|
storage | EventStoreStorage | EventStoreStorage | mongo |
YAML Configuration Example
yaml
wow:
eventsourcing:
store:
storage: mongoEventStoreStorage
kotlin
enum class EventStoreStorage {
MONGO,
REDIS,
R2DBC,
IN_MEMORY,
DELAY
;
}SnapshotProperties
- Configuration class: SnapshotProperties
- Prefix:
wow.eventsourcing.snapshot
| Name | Data Type | Description | Default Value |
|---|---|---|---|
enabled | Boolean | Whether to enable | true |
strategy | Strategy | Snapshot strategy | all |
version-offset | Int | Version offset | 5 |
storage | SnapshotStorage | Snapshot storage | mongo |
yaml
wow:
eventsourcing:
snapshot:
enabled: true
strategy: all
storage: mongoStrategy
kotlin
enum class Strategy {
ALL,
VERSION_OFFSET,
;
}SnapshotStorage
kotlin
enum class SnapshotStorage {
MONGO,
REDIS,
R2DBC,
ELASTICSEARCH,
IN_MEMORY,
DELAY
;
}StateProperties
- Configuration class: StateProperties
- Prefix:
wow.eventsourcing.state
| Name | Data Type | Description | Default Value |
|---|---|---|---|
bus | BusProperties | BusProperties |
YAML Configuration Example
yaml
wow:
eventsourcing:
state:
bus:
type: kafka
local-first:
enabled: true