Skip to content

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

License

Notifications You must be signed in to change notification settings

GemberPHP/event-sourcing

Repository files navigation

🫚 Gember Event sourcing

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages