← Graph

Do events store current state, and how does replay perform?

question 3 connections

Audience asks whether each event stores the latest state or the change, and how performance is affected when state must always be computed. Ladd: events represent only what happened, not current state; to get current state you read each event sequentially. Performance countermeasures are readily generalisable — each event has a position exactly one greater than the previous, so entities can be cached tagged with their version and read resumed from the next position. Eventide's entity_store library ships with such a cache and also with snapshotting (periodically writing a representation of current state so a restart doesn't replay millions of events). Disk usage vs storing only current state has its own countermeasures.

answer_summary
Events are raw occurrences; current state is folded. Performance is handled via a version-keyed entity cache and periodic snapshots — both shipped in Eventide's entity_store.
question Do events store current state, and how does replay perform?
about
Answer describes version-keyed entity cache and periodic snapshots shipped by entity_store.
question Do events store current state, and how does replay perform?
about
Answer cites Eventide's entity_store library as providing the cache and snapshotting.
question Do events store current state, and how does replay perform?
asked_at
Q&A after the talk.

Provenance

Read by
5 extractions