HeadlinesBriefing favicon HeadlinesBriefing.com

celld: Self-hosted Durable Objects

Hacker News •
×

celld is an open-source daemon that allows users to run Cloudflare Workers and Durable Objects on their own machines. This self-hosted, distributed system addresses each object as its own SQLite database, replicated to an S3-compatible bucket. Nodes coordinate solely through this bucket, eliminating the need for a control plane or consensus mechanisms.

Applications are inherently sharded, designed to avoid the contention and blast-radius failures common with shared databases. Idle "cells" (nodes) hibernate to conserve resources. Each celld node embeds V8 for executing Wrangler bundles, and the fleet shares an S3-compatible bucket for deployments and state. Object-storage compare-and-swap ensures single ownership of cells without complex membership protocols.

Installation is straightforward via a curl script, and celld releases are stored securely. Containerization is supported with Docker, allowing for persistent local state and the use of standard AWS credentials. Deployments are managed through the S3 bucket, with nodes discovering peers from bucket leases. Fleet operation includes diagnostic tools like `celld diagnose` to monitor node health and resource usage. Pressure shedding mechanisms help manage resources under load. Contributions are accepted via git format-patch to [email protected] under the Apache-2.0 license.