gember/event-sourcing

Use case driven EventSourcing - Let go of the Aggregate with the Dynamic Consistency Boundary (DCB) pattern.

0.3.0 2025-05-10 11:55 UTC

This package is auto-updated.

Last update: 2025-05-10 13:00:55 UTC


README

Build Status Coverage Status Quality Score Software License PHP Version

Use case driven EventSourcing - Let go of the Aggregate with the Dynamic Consistency Boundary (DCB) pattern.

Documentation

In a nutshell

Traditional 'Aggregate driven' EventSourcing

Domain concepts are modeled towards objects: the aggregate.

  • Any business logic related to a single domain object should live inside the aggregate
  • Logic that involves other domain objects or groups of the same kind of domain objects does not belong in the aggregate

aggregate-driven-event-sourcing

'Use case driven' EventSourcing

Domain concepts are modeled through use cases.

  • Any business logic tied to a use case should live inside that use case
  • A use case can relate to one or more domain concepts

use-case-driven-event-sourcing