Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broadway/snapshotting

Proof-of-concept component providing snapshotting functionality to broadway/broadway.

build status

Installation

$ composer require broadway/snapshotting

Documentation

This project demonstrates taking and using snapshots of an aggregate root in the EventSourcingRepository.

Snaphots can be triggered using different strategies like once every number of events or after an amount of time has passed. The EventCountTrigger implements the former strategy.

Getting started

This repository is just a library. It lacks (for now) implementations of the SnapshotRepository.

For example if you want store your events and snapshots in a database using doctrine/dbal you will have to:

  • create a DBALSnapshotRepository implementing the SnapshotRepository to store and fetch snapshots. You wil have to figure out how to serialize your aggregate root.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Proof-of-concept component providing snapshotting functionality to Broadway

Resources

Stars

6 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages