Configure Persistence

EventSauce has two connections to persistence.

  • The MessageRepository which contains Messages for reconstituting aggregates.
  • The MessageDispatcher which is used to communicate Messages with MessageConsumers.

MessageRepository

The message repository stores messages that aggregate roots use for reconstitution. The repository has specific methods to query messages that belong to a single aggregate root. A message repository should only be used for reconstitution. Performing arbitrary queries on the underlying database is not advised, use a projection for this instead.

There are 3 message repository implementations shipped:

Each of the implementations support two database table schemas.

Learn more about message storage

View the docs for message storage to learn more.

Frank de Jonge

EventSauce is a project by Frank de Jonge.