本文へスキップ
記事中級

Durable Objects の SQLite で座席予約アプリを作る

Durable Objects の SQLite を使ってフライトの座席予約アプリを作ります。座席の状態は WebSocket で全クライアントにリアルタイム反映されます。

最終更新
2026年10月12日
元の記事を読む

この紹介文は現在英語版のみです。

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.

さらに学ぶ