//Durable Objects

Serverless code with its own consistent state

Build chat, multiplayer, and collaborative apps that keep users in sync worldwide, with no message brokers or state stores to manage.

One owner for every cart, counter, and room

A name always resolves to one durable object, which serves requests one at a time, so two requests never write the same data at once.

Every user in sync, instantly

Each durable object is a WebSocket server and client that pushes every state change to all connected clients in a few lines of code.

Call methods directly or over HTTP

Reach a durable object through RPC method calls or plain HTTP requests, whichever matches how your application already talks to services.

Durable state, no lost writes

An embedded SQLite database confirms each write only after it's stored durably, so state survives restarts and failures.

Background work on autopilot

Run code in the background, poll APIs periodically, or schedule future work with alarms. The platform wakes the durable object on time.

Ship faster with no rewrites

Use the Durable Objects API you already know. Existing classes run on Azion without a rewrite, so you write the logic, not the plumbing.

//Features

One coordinator for every unit of shared state

Keep shared state correct and every user in sync, without building the coordination yourself.

One owner per name. Every call to a durable object reaches its one active instance. A conditional write in durable storage guarantees a single owner.

Transactional SQL inside every object. Each durable object keeps state, events, and history in its own SQLite database, with ACID transactions, right next to your code.

Fan-in and fan-out over WebSockets. Clients connect over WebSockets to the durable object that owns their state, and it broadcasts every update to all of them.

Contabilizei
With Azion, Contabilizei improved request delivery at the Edge, reduced infrastructure costs, and gained fast access to support whenever needed.
Fabrício SantosDevSecOps Manager at Contabilizei

Serverless AI-native primitives for autonomous workloads

Frequently asked questions

Build your next app today

Pick a template and deploy it in seconds, or talk to a specialist about your workload.

Function Starter KitHello World app powered by a function.
Deploy now
AI Inference Starter KitAI app with no origin dependency.
Deploy now
Next.js E-commerceNext.js storefronts to choose from.
Deploy now
LangGraph AI Agent BoilerplateAI agent with RAG, built with LangGraph.
Deploy now
React BoilerplateReact single-page application.
Deploy now
Next.js Static BoilerplateNext.js single-page application.
Deploy now
Astro BoilerplateBasic Astro project for content-driven sites.
Deploy now
Vue BoilerplateVue single-page application.
Deploy now
Angular BoilerplateAngular single-page application.
Deploy now
Nuxt ContentBlog or docs site with Nuxt Content.
Deploy now
Astro E-commerceAstro storefronts to choose from.
Deploy now
Neon Database Starter KitApp connected to Neon with Drizzle ORM.
Deploy now
Turso Starter KitApp connected to Turso with Drizzle ORM.
Deploy now
Upstash GeoLocationMessages by the user's location.
Deploy now
Qwik BoilerplateProject based on the Qwik framework.
Deploy now
Docusaurus TypeScript BoilerplateStatic Docusaurus project in TypeScript.
Deploy now