sunspikes / broadway-extras
Extras for broadway CQRS / event sourcing library
Requires
- php: >=7.0
- aws/aws-sdk-php: ^3.0
- broadway/broadway: ^2.0
- broadway/broadway-saga: ^1.0
- broadway/snapshotting: ^0.3.0
- doctrine/cache: ^1.8
- doctrine/dbal: ^2.7
This package is auto-updated.
Last update: 2024-10-29 05:22:30 UTC
README
Extras for broadway CQRS / event sourcing library
Installation
composer require sunspikes/broadway-extras
What's inside?
StateManager: Use this to have multiple saga creation policies as defined in CreationPolicy
or define custom creation policy with a closure callback creation_policy_callback
DBALSagaRepository: DBAL driver for sagas
DynamoDBSagaRepository: DynamoDB driver for sagas
SerializableAggregateInterface & SerializationAwareTrait: Make aggregates serializable (so that it can be snapshotted)
CachingSnapshotEventSourcingRepository: Adds a caching layer to snapshots, so load will get the aggregate in the order Static Cache -> Cache -> Snapshot -> Events
CacheSnapshotRepository & RedisCacheFactory: Snapshot the aggregates on in redis (or other cache stores)
DynamoDBEventStore: DynamoDB driver for event store
TODO
Detailed usage & Integrations with frameworks guide
Author
Krishnaprasad MG [@sunspikes]
Contact me at [sunspikes at gmail dot com]