Skip to content

Cratis Chronicle event stores and storage

An event store in Cratis Chronicle holds your application’s events in event sequences, together with the definitions and state needed to process them. It is the boundary you select when connecting an application to its event history.

The store also tracks event types, which describe the events, and observers, which consume them. Projections use those events to build read models that your application can query.

An event store is a Chronicle concept, separate from the database engine that persists it. Chronicle supports MongoDB, PostgreSQL, Microsoft SQL Server and SQLite. MongoDB is the default, and the development Docker image includes it for local use. Choose a provider and connection details in Storage configuration.

This example uses MongoDB and separates the event sequences into two namespaces:

append · read

Event store

tenant-a namespace

event sequences

Default namespace

event sequences (the event log)

also tracks: event types · observers · projections · …

Your application

MongoDB

Namespaces separate data within an event store. For a multi-tenant application, you can give each tenant its own namespace while sharing the store’s event type and projection definitions.

Chronicle uses the Default namespace when none is provided. Read Namespaces before choosing tenant identifiers: the namespace affects where events and read models are stored.