Zero-latency SQLite storage in every Durable Object

published on 2024/10/14

The key idea behind Durable Objects is to colocate application logic with the data it operates on. A Durable Object comprises code that executes on the same physical host as the SQLite database that it uses, resulting in blazingly fast read and write performance.

Kenton presents the example of a flight booking system, where each flight can map to a dedicated Durable Object with its own SQLite database - thousands of fresh databases per airline per day. Each DO has a unique name, and Cloudflare's network then handles routing requests to that object wherever it might live on their global network.

Simon Willison