Architecture

How it works

Pagefeather is a framework. Your Cloudflare account runs the site. The code lives in the public repository. You keep the tokens, the data, and the bill.

b-dosql

Built-in database

PHP and its SQLite database run in one Durable Object. One command deploys a site to workers.dev, or to a hostname in a zone you own.

Deploy

One object per site

  • VARIANT=b-dosql with deploy/deploy.sh
  • Workers Free or Workers Paid
  • MEDIA=1 puts uploads in R2
  • One writer, one region
Throughput

Uncached work

  • About 5 requests a second for work the cache cannot answer
  • Past that the queue grows
  • Near 100 clients the object refuses
  • Evidence in docs/perf-dosql.md

Approach A

MySQL through Hyperdrive

PHP runs in a Worker. MySQL sits outside Cloudflare. Hyperdrive holds the connection pool. Placement should match the database region.

Paid

What you need

  • Workers Paid (Free installer stops at the CPU limit)
  • MYSQL=external or MYSQL=vultr
  • Required PLACEMENT (for example azure:westus2)
  • You also pay for the MySQL server
Scale-out

Isolates

  • Isolates scale out under concurrency
  • At 50 concurrent users, Cloudflare started up to 118 isolates
  • Cold first request: 3 to 9 s more at the client
  • Ledger: results.md, 2026-11-09

Many sites

Workers for Platforms

One platform Worker serves many sites. Each site is a named user Worker plus its own storage. deploy/wfp/site is the operator surface. Plan cost at rest is $30 a month for two or more sites (WfP Paid plus Workers Paid).

Cache

Guest pages at the edge

  • Logged-out guest pages can come from the Workers Cache and never reach PHP.
  • Default guest TTL is 120 s (PAGE_CACHE_TTL).
  • Product, shop, and category pages default to 30 s (PAGE_CACHE_PRODUCT_TTL).
  • Cart, checkout, account, and logged-in pages always run PHP.
  • A cached product page can show an old stock number for a short window. Checkout always reads real stock.

Ready to install?

Use the checked Start here path on your own account.

Get started