Concepts: Persistent State
Clone this wiki locally
In Orbit actor state is typically handled as part of the system itself rather than storage strategies being entirely defined by the developer.
State is automatically retrieved when an actor is activated. Writing state is developer defined.
Working with State
Active Record state stores the entire current state of the Actor.
State changes overwrite the existing state.
Learn more about active record here.
Event Sourced state stores the history of an Actor’s state by recording Events which changed the Actor’s state.
Events can be replayed to recover the current valid state for the Actor.
Learn more about event sourcing here.
Support for different storage providers is provided using Orbit extensions. A list of extensions is maintained here.