Orleans Architecture Patterns
summary
Orleans exposes a virtual actor model where addressable grains auto-activate/deactivate, guarantee single-threaded execution per grain, and optionally persist state via storage providers. Common, reusable patterns here are smart-cache (grains as cached, single-writer objects that eliminate concurrent write conflicts), event sourcing with replay/snapshots and lazy or eager aggregate strategies, and virtual streams (multiplexed over Event Hubs/Kafka for queue-backed, at-least/at-most-once delivery). Example code and a patterns library live on GitHub; the platform runs at cloud scale in production (Halo, Skype) and reduces latency and storage contention.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:39Programming in the 21st Century
- 5:17Pattern: Object Storage Grain
- 10:39Pattern: Registry - Usage
- 13:47Traditional Approach to Caching
- 14:22Orleans Approach
- 15:10Types of Caches
- 17:02Smart Cache: Example
- 19:15Pattern: Event-Sourcing Smart Cache
- 30:23Pattern: Aggregate - Grain State
- 33:09Composite Pattern: Object Store
- 45:22Orleans Streaming
- 49:27Pattern: Streaming Analytics
- 50:56Pattern: State Machine
- 58:28Cross-Cutting Benefits of Orleans
related talks
01h 07mStairway to Cloud: Orleans Framework for building Halo-scale systems
19mScaling to 500k concurrent customers with orleans
37mState of Affairs or Affairs of State
36mApplication Architecture Patterns
54mArchitecture Foundations: Styles & Patterns (2021)
46mState or events? Which shall I keep?
56mDesign Patterns for Multi Agent Systems
57mSimplify Your Architecture: Events and Publishing
