sunspikes/broadway-extras

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Extras for broadway CQRS / event sourcing library

0.2 2018-01-12 15:00 UTC

This package is auto-updated.

Last update: 2021-09-29 02:03:57 UTC


README

Extras for broadway CQRS / event sourcing library

Installation

composer require sunspikes/broadway-extras

What's inside?

Saga

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

Serialization

SerializableAggregateInterface & SerializationAwareTrait: Make aggregates serializable (so that it can be snapshotted)

Snapshotting

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]