BlogsTemporalActor Model Abstraction

Actor Model Abstraction

Actor Model Abstraction

3
posts
2021–2026

Temporal Actor Workflows provide a pattern for modeling individual players as durable, independently-running processes. Each player is represented by a Workflow, identified by their customer ID, which holds their state (points balance, tier status, activity history) and executes business logic (purchases, redemptions, tier upgrades) synchronously via Signals, Updates, and Queries. This pattern ensures sessions survive server crashes, eliminates the need for complex reconnection logic, and automatically manages history growth with Continue-As-New. This approach addresses the challenges of running loyalty programs at scale by providing a dedicated, durable account for each customer that holds state, enforces business rules, responds to events in real time, and never needs a cron job to stay current.

2026

Loyalty Points with Entity Workflows in Temporal

6/3/2026

This post details the application of the Temporal Actor Workflow pattern to a customer loyalty program. It explains how each customer is represented by a dedicated Workflow, managing their points balance, tier status, and activity history. The post describes how Signals are used for point accrual, Updates for synchronous redemption validation, and Queries for real-time balance display. It highlights the benefits of this approach over traditional shared database models, including eliminating cron jobs for tier upgrades, ensuring consistency, and handling long-lived customer relationships.

Durable Player Sessions with Temporal Actor Workflows

5/28/2026

This post introduces and details the application of Temporal Actor Workflows for managing durable player sessions in multiplayer game backends. It explains how modeling each player as a Workflow allows their state to survive server crashes, executes game actions via Activities, and ensures continuous addressability. The post highlights the benefits of this pattern for state consistency, coordination of multi-step operations, and automatic history management through Continue-As-New, directly addressing common scaling challenges in game development.

2021

The curse of the A-word

5/5/2021

The post analyzes the "curse of the A-word" by dissecting four key conflations within the Actor Model: Distributed & Local, Supervision Trees & Actors, Message Passing & One-Way Messages, and State Transition & Become. It argues that the term 'actor' itself is a source of confusion and proposes alternative terminology like 'grains' or 'Cloud Native Objects' to better represent the concepts of distributed virtual actors, emphasizing their similarities to familiar object-oriented programming concepts.