
D
Durable Actors
Open Sourceπ Alt to Cloudflare Durable ObjectsOpen-source durable objects with configurable compute infrastructure
π³ Self-Hostableπ No Sign-upβ‘ Editorial Signal: 82/100β
377 Stars
npm install durable-actorsDurable Actors provides an open-source alternative to proprietary stateful serverless primitives like Cloudflare Durable Objects. It enables developers to build stateful, highly concurrent actors with configurable compute backends without being locked into a single vendor ecosystem.
Encapsulate state and behavior into isolated, concurrently executing actor instances.
Easily map your durable execution logic to custom infrastructure and container runtimes.
Run stateful serverless patterns anywhere without relying on proprietary cloud provider primitives.
Building real-time collaborative applications with persistent room state
Orchestrating long-running multi-step workflows and distributed sagas
Managing stateful AI agent sessions and memory stores
Unlike Cloudflare Durable Objects which ties you to Cloudflare's edge network and proprietary runtime, Durable Actors gives you complete ownership and the freedom to run your stateful workloads on any infrastructure.
Backend engineers and system architects building distributed, stateful real-time applications who want self-hosted alternatives to proprietary serverless primitives.
Durable Actors is engineered to eliminate critical operational friction in open source alternatives. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
Durable Actors introduces an open-source, vendor-agnostic distributed stateful actor runtime inspired by Microsoft Orleans and Cloudflare Durable Objects. At its architectural core, the system models stateful distributed entities as virtual actors: uniquely addressable computing units that encapsulate both business logic and in-memory transactional state. The framework enforces strict single-threaded execution guarantees per actor ID: incoming messages are serialized into an asynchronous internal mailbox queue, eliminating concurrency race conditions and distributed locking overhead. The execution loop integrates an event-driven state hydration and snapshotting lifecycle (`onActivate`, `onReceive`, `onDeactivate`). Persistence is decoupled through pluggable storage adapters: the runtime supports PostgreSQL, SQLite with Litestream replication, Redis, and DynamoDB for write-ahead logging (WAL) and state checkpointing. Inter-node actor routing is facilitated through a distributed hash ring (consistent hashing) and lightweight cluster gossip protocols, enabling nodes to route incoming RPC requests directly to the cluster host holding the active actor instance in memory. Transport options include high-performance HTTP/JSON-RPC, WebSockets for bidirectional real-time push, and gRPC for low-latency node-to-node communication across Kubernetes or Docker Swarm private overlay networks, ensuring resilience against network partitions. This comprehensive distributed architectural design provides predictable low-latency message delivery and robust failure recovery across heterogeneous multi-node computing clusters.
Developer ergonomics in Durable Actors center around modern TypeScript idioms and end-to-end type safety. Developers define durable actors by extending a generic base class (`DurableActor<TState>`) and implementing strongly typed message handlers. Configuration is declarative, defined via structured TypeScript manifests or YAML files that specify heartbeat intervals, idle actor eviction timeouts, snapshotting cadence, and storage provider connection strings. Local iteration is remarkably frictionless: unlike Cloudflare Durable Objects, which require complex local Miniflare simulations or cloud wrangler deployments, Durable Actors runs natively inside standard Node.js or Bun runtimes with instant hot-reloading via tsx or nodemon. Testing workflows are equally straightforward: engineers can write standard unit and integration tests using Vitest or Jest, spinning up in-memory actor clusters in milliseconds without mocking proprietary cloud runtimes. Built-in OpenTelemetry instrumentation automatically injects distributed trace contexts into actor message invocations, exporting latency spans, mailbox queue depths, and database persistence durations directly to Jaeger, Prometheus, or Datadog dashboards. Comprehensive error boundaries capture actor runtime exceptions, automatically rolling back uncommitted transactional state and triggering configurable exponential backoff message retries for dropped packets. This developer-centric tooling ecosystem significantly accelerates development velocity, enabling teams to build, test, and debug distributed actor systems with complete confidence.
Durable Actors is licensed under the permissive open-source MIT or Apache 2.0 license, providing a massive strategic and financial advantage over proprietary serverless state platforms. Commercial equivalents like Cloudflare Durable Objects enforce complex, opaque pricing structures that bill simultaneously for active duration ($12.50 per million GB-seconds), total request volume, and persistent storage write operations. In high-concurrency real-time applicationsβsuch as collaborative document editors, live chat rooms, or multiplayer game serversβthese proprietary micro-billing metrics can escalate rapidly into thousands of dollars per month. Durable Actors completely eliminates proprietary vendor lock-in: organizations deploy the runtime on commodity infrastructure, ranging from affordable bare-metal servers (such as $40/month Hetzner dedicated nodes) to standard AWS EKS or GCP GKE Kubernetes clusters. Organizations achieve total data sovereignty, anchoring their state storage to standard PostgreSQL databases without fear of vendor deprecation or arbitrary platform price hikes. Operational maintenance is equivalent to standard containerized microservices: basic Prometheus monitoring, auto-scaling horizontal pod autoscalers (HPA), and standard database backup routines are all that are required to sustain high-availability production clusters over multi-year operational horizons. This substantial total cost of ownership advantage allows technical teams to scale high-concurrency stateful workloads without facing unpredictable monthly platform invoices or restrictive vendor ecosystems.
Durable Actors is an outstanding architectural choice for engineering teams building real-time collaborative applications, multi-agent AI session managers, IoT device twins, and distributed saga orchestrators who refuse proprietary cloud lock-in. It provides the stateful developer ergonomics of serverless Durable Objects while allowing full control over hosting infrastructure and data persistence layers. However, teams evaluating Durable Actors must assess operational readiness: unlike managed Cloudflare infrastructure where edge routing, global replication, and hardware failover are completely abstracted away, deploying Durable Actors in production requires internal operational maturity. Engineering teams bear responsibility for managing their own cluster clustering topology, configuring Kubernetes network policies, provisioning storage IOPS, and managing leader election during network partitions. In production environments, failure modes can arise during abrupt node crashes: while transactional write-ahead logs prevent data loss, rehydrating thousands of orphaned actors across remaining healthy nodes can introduce temporary latency spikes if mailbox backlogs are extensive. For engineering organizations with established Docker and Kubernetes capabilities, Durable Actors delivers an elite, enterprise-grade stateful foundation that operates predictably at scale. Ultimately, Durable Actors equips forward-looking engineering teams with the foundational distributed primitives required to build resilient, sovereign, stateful backend systems that scale cost-effectively across private or public infrastructure.
Durable Actors is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike Cloudflare Durable Objects which ties you to Cloudflare's edge network and proprietary runtime, Durable Actors gives you complete ownership and the freedom to run your stateful workloads on any infrastructure.
Yes. Durable Actors is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Durable Actors. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Durable Actors quickly using the following command: npm install durable-actors Visit the official portal at https://github.com/TerseAI/durable-actors for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Durable Actors was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Durable Actors and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/durable-actors)<a href="https://lordorange.top/tool/durable-actors" target="_blank"><img src="https://lordorange.top/badge/durable-actors.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Durable Actors.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.