Heuristics

Design for replayability

Authors: Nick Tune

Submitter: Nick Tune

How can I make projection more adaptable?

Short description

Design projections so that they can be easily replayed per stream or projection type.

Examples

A particular read model requires a new field that wasn't captured previously. Changing the logic and replaying it will make the field available for already existing read models as well as for newly created ones.

Context

In Event-Driven architectures and particularly in Event-Sourcing + CQRS the "read" part of the system is a projection of the Event Stream. Design the infrastructure of the event delivery to projection handler so that it can be easily replayed when bugs are discovered or requirements changed. It is usually a good idea to be able to replay either subset of streams or all of them.

Tags

Follow us

Read our latest news from Virtual DDD on any of these social networks!

Recent heuristics

Discussed content

Sorry, no results found!

Whoops... we couldn't find what you're looking for