Sourcing::Plugin

The Sourcing library uses two plugin roles to handle different aspects of event sourcing:

Plugin Roles

Sourcing provides two plugin roles for different storage concerns:

Sourcing::Plugin::EventStore

Handles event storage operations:

Sourcing::Plugin::StateCache

Handles projection state caching:

Architecture

This separation enables flexible architectures:

Combined Implementation

For convenience, Sourcing::Plugin::Memory implements both roles in a single class. This is useful for testing and development.

See Also