Everything is an Actor
summary
Argues that the Actor Model makes reactive apps simpler by modeling components as independent actors that communicate by messages, using mailboxes to guarantee mailbox ensures one message at a time and a guardian-root hierarchy for location transparency and fault tolerance. Shows XState integration: XState v5 requires explicit actors and the ability to spawn order actors per order so each order has its own behavior. Announces xactor, a tiny implementation at 1.5 kilobytes minified gzip.
AI-written summary · about
chapters (13)
- 0:00Everything is an Actor
- 6:05What is an actor?
- 7:35The Actor Model
- 9:35Rules of actors
- 14:46Behavior
- 16:43Actor System
- 18:47Mailboxes
- 20:26Location Transparency
- 21:45Fault Tolerance
- 29:09Actors: Promise
- 29:44Actors: Observable
- 30:52Actors: React?
- 32:35Actors: @xstate/react
related talks
38mThe Actor Model: a new mental model for React
25mArchitecting Web Apps - Lights, Camera, Action!
19mThe State of XState
51mPut an "Actor Model" in your House
27mXState: the Visual Future of State Management
03h 38mLaying Foundations for Stateful React Game Development
28mThe two ways to manage state
59mActors can rule your DDD world
