← Graph

Migration Event Pattern

concept 2 connections

Pattern the Trezy team uses when introducing a new aggregate or read model into an existing code base: backfill the data by writing a dedicated 'migration' event to each stream rather than reusing normal domain events, so the migration point is explicitly visible in the stream. Used both when the bank-account aggregate was introduced and when the transaction-classification aggregate took over existing data.

category
practice
about
Migration Event Pattern concept
Describes backfilling new aggregates/read models via dedicated migration events.
concept Migration Event Pattern
related_to
Event Sourcing concept
Specific migration approach for event-sourced systems.

Provenance

Read by
1 extraction