Skip to main content

Infrastructure Event Store

Description

A specialized persistence mechanism for storing and retrieving sequences of Domain Events, typically used with Event Sourced Aggregates.

Definition Schema

The definition for a infrastructure_event_store component expects the following structure:

{
"properties": {
"name": {
"description": "Name of the EventStore class (e.g., PostgresEventStore, InMemoryEventStore).",
"title": "Name",
"type": "string"
},
"aggregate_id_type_str": {
"default": "uuid.UUID",
"description": "Python type string for the TAggregateId generic type parameter (e.g., 'uuid.UUID', 'int').",
"title": "Aggregate Id Type Str",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional description for the event store class.",
"title": "Description"
}
},
"required": [
"name"
],
"title": "CreateEventStoreDTO",
"type": "object"
}

Naming and Location Conventions

Class: PascalCase, typically ends with 'EventStore'. File: ${infrastructure_event_store_name}.py (based on ${infrastructure_event_store_name}). Location: app/infrastructure/event_stores.

Example Definition

No example available.