What is a durable actor?
A durable actor is a serverless stateful object. An actor is a small backend for a piece of state you want to protect. It keeps state and compute in one place.How does Terse relate to durable-actors?
durable-actors is an open source project under the MIT License. It includes the actor runtime, the SDK, and examples. You can run it yourself. Terse is the managed, hosted service for durable-actors. You deploy withterse deploy. Terse runs and scales the actor hosts. You manage projects in the Terse app.
How is an actor identified?
Each actor instance has an ID. Its project, class, and ID identify it globally. You can reach the same actor from anywhere. Keep the same ID across reconnects and restarts. Use a new ID for a new conversation or run.Who manages the actor hosts?
Terse manages scaling and placement of actor hosts. Successful calls save persisted state. Hosts can scale down. The next call restores that state.When should I use a durable actor?
- AI agents
- Human approvals
- Collaborative documents
- Chat rooms
- Shared queues and rate limits
When should I use something else?
Use a stateless handler for independent requests. Use a database for cross-entity queries and analytics. Use a batch system for large data scans. Actor calls do not create a transaction across several actors. Coordinate cross-actor work explicitly.How should I model a durable actor?
Think of an actor as your smallest piece of atomic state. Keep related values and their updates together.- Conversation: one actor for its messages and current turn.
- Document: one actor for its content and revision number.

