Event Sourced Grains
Richard Astbury · Apress eBooks · 2022
The state of a grain is typically a single data structure. The grain will mutate the fields over time and persist when appropriate. Orleans provides an alternative way of managing state. Instead of a single data structure, we can consider state as the accumulation of a number of events which, applied in sequence, generates the state object. We call this event sourcing.