Setting up projections
Recipes for the two flavors of projection — virtual and persistent — distinguished by where the projected state lives. The Projection concept introduces the choice; the recipes here show how to set each one up.
- Virtual — projection that materializes state in memory only, recomputed on demand from the events - ideal for consistency checks
- Persistent — projection that materializes state to a durable store: an
ActiveRecordrow in a Funes-shaped table by default, or any custom destination (S3, Redis, search index, external API)