CHASM: Deep Dive into Temporal Server's State Machine SDK
summary
CHASM is an internal server-side state-machine SDK that already powers Standalone Activities, Nexus, callbacks, and the scheduler and ships a reusable component model (archetypes, fields, tasks). Demo builds an updatable timer by extending Temporal gRPC with start/update/describe/long-poll/terminate/list APIs, runs across four repos, and uses a few Cloud Code prompts to generate code; a timer set an hour ahead is updated to 3s and fires successfully. Key runtime features: pure vs side‑effect tasks, pure‑task collapsing, state‑based replication with version‑transitions (failover version + transition count), built-in visibility, partial writes today, partial reads planned.
AI-written summary · about
chapters (9)
- 0:00Introduction to Chasm
- 1:53What is Chasm framework
- 5:26Demo of updatable timer
- 10:23Chasm components explained
- 14:15Task processing in Chasm
- 21:59RPC processing and visibility
- 31:39Replication in Chasm
- 38:59Future work and migration plans
- 42:12Q&A and closing remarks
related talks
42mHow to build distributed systems in JavaScript
26mTemporal: A Better Way to Build Modern Applications
26mMicroservices Madness: Application And Infrastructure Automation Using Temporal
23mDesigning a Workflow Engine From First Principles
50mThe end of event-based architectures? Orchestration with Temporal
30mOrchestrate Your Business Workflows with Temporal
01h 38mBuilding Reliable Distributed Systems
37mState of Affairs or Affairs of State
