All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Durable Objects, Workers - Durable Objects on Workers Free plan

1y ago

Source

CloudflareDurable Objects, Workers - Durable Objects on Workers Free plancloudflare.com
Snippet from the RSS feed
Durable Objects can now be used with zero commitment on the Workers Free plan allowing you to build AI agents with Agents SDK , collaboration tools, and real-time applications like chat or multiplayer games. Durable Objects let you build stateful, serverless applications with millions of tiny coordination instances that run your application code alongside (in the same thread!) your durable storage. Each Durable Object can access its own SQLite database through a Storage API . A Durable Object class is defined in a Worker script encapsulating the Durable Object's behavior when accessed from a Worker. To try the code below, click the button: import { DurableObject } from "cloudflare:workers" ; // Durable Object export class MyDurableObject extends DurableObject { ... async sayHello ( name ) { return `Hello, ${ name } !` ; } } // Worker export default { async fetch ( request , env ) { // Every unique ID refers to an individual instance of the Durable Object class const id = env . MY_DURABLE_OBJECT . idFromName ( "foo" ) ; // A stub is a client used to invoke methods on the Durable Object const stub = env . MY_DURABLE_OBJECT . get ( id ) ; // Methods on the Durable Object are invoked via the stub const response = await stub . sayHello ( "world" ) ; return response ; }, }; Free plan limits apply to Durable Objects compute and storage usage. Limits allow developers to build real-world applications, with every Worker request able to call a Durable Object on the free plan. For more information, checkout: Documentation Zero-latency SQLite storage in every Durable Object blog

You might also wanna read

Implementing a Durable Execution Engine Using SQLite for Persistent Workflows

The article explores building a Durable Execution (DE) engine using SQLite, explaining how DE engines make multi-step workflows persistent a

morling.dev·7mo ago

SQLite as a Viable Alternative for Durable Workflow Execution

The article argues that SQLite can replace complex orchestration systems for durable workflow execution in many cases. It builds on DBOS's a

obeli.sk·1mo ago

Typhon Database: Three Configurable Durability Modes in a Single WAL for Flexible Workloads

This article is part of a series about building a database engine called Typhon in C#. It discusses how Typhon implements three different du

dev.to·1mo ago

Workflow SDK: Adding Durability and Reliability to TypeScript Functions

The article introduces Workflow SDK, a tool that adds durability, reliability, and observability to asynchronous JavaScript/TypeScript funct

useworkflow.dev·8mo ago

Understanding SQLite's Durability Settings and Performance Trade-offs

The article examines SQLite's durability settings, highlighting the confusion and conflicting information in its documentation regarding whe

agwa.name·10mo ago

Vercel's Eve: A Durable Agent Framework with Sandboxed Compute and Multi-Channel Delivery

Vercel's "eve" is an agent framework that provides durable execution with crash recovery and checkpointing, sandboxed compute via isolated V

eve.dev·10d ago

Vercel's Eve: A Durable Agent Framework with Sandboxed Compute and Multi-Channel Delivery

Vercel's "eve" is an agent framework that provides durable execution with crash recovery and checkpointing, sandboxed compute via isolated V

eve.dev·10d ago

Comments

Sign in to join the conversation.

No comments yet. Be the first.