Read side vs snapshots - theory question


(Jonas Lantto) #1

How does the snapshotting feature play with event sourcing and read sides? From what I’ve understood snapshots store the current state. So if you restore from a snapshot, won’t the read side only be populated by events after the snapshot?


(Alan Klikic) #2

@jonaslan snapshots are used only for state not readside. It is an optimization to avoid replaying all event from the beginning to restore state.
Readside uses offsetstore table to store last processed offset per shard