Concepts: Persistent State

Joe Hegarty edited this page Apr 27, 2016 · 3 revisions

Overview

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

Active Record state stores the entire current state of the Actor.

State changes overwrite the existing state.

Learn more about active record here.

Event Sourcing

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.

Storage Extensions

Support for different storage providers is provided using Orbit extensions. A list of extensions is maintained here.