Skip to content
ArticleIntermediate

Build a seat booking app with SQLite in Durable Objects

Build a flight seat reservation app with SQLite in Durable Objects, with live seat updates for every client over WebSockets.

Last updated
Oct 12, 2026
Read the original

Users book seats for a flight, and each flight is coordinated by a Durable Object that stores its seats in the SQLite storage backend. Durable Objects make it straightforward to handle coordination and state for many clients at once.

What you’ll learn

  • Create a table per flight in Durable Object SQLite
  • Add booking methods to the Durable Object
  • Handle WebSocket connections for live updates
  • Test and deploy

Cloudflare products used

Durable Objects, Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

Keep learning