Development Methods & Design

Event Sourcing

English

Overview

An architectural pattern that records every change (event) leading up to the current state, rather than storing only the latest state itself.

Details

Rather than directly updating a bank account balance, a typical example records a sequence of events like "deposit" and "withdrawal," and recalculates the current balance by replaying them. This has the advantage of being able to reconstruct the state at any point in the past, though it tends to add implementation complexity.

More Programming terms