Edge Computing and Serverless

An execution platform that runs code on demand at network edge locations close to users without maintaining always-on origin servers, eliminating OS administration while delivering low latency and high resilience.

General Meaning

Serverless computing frees developers from provisioning physical servers or virtual machines, applying OS patches, or planning capacity; the cloud platform automatically spins up and scales functions whenever requests arrive.

Edge computing deploys those functions across hundreds of global Points of Presence (PoPs) close to end users rather than inside a single distant data center. Combining the two yields zero idle server cost, low latency worldwide, and automatic failover across edge locations.

Why It Matters

  • Zero server maintenance overhead: Eliminates OS patching, SSH port hardening, and web server process supervision.
  • Minimizing physical network latency: Serves API responses and static assets from the nearest regional edge PoP.
  • Automatic scaling and traffic absorption: Handles sudden traffic spikes and routes around regional outages automatically.

How the Site Factory Uses It

The Site Factory operates zero always-on web servers, relying entirely on Cloudflare's edge platform as its external control tower and delivery layer: (1) Cloudflare Workers (dispatch/wrangler.jsonc, dispatch/src/index.js) hosts the dispatcher API for service leases, A2A routing, and GitHub webhook ingestion; (2) Cloudflare D1 (honbu-dispatcher, dispatch/schema.sql) stores the canonical task ledger, service leases, and execution receipts; (3) Cloudflare R2 (furusato-archive-backup) stores off-site backups of raw municipal data archives; and (4) Workers Static Assets (dashboard/wrangler.jsonc with assets: ./site) serves the static the Site Factory map.

By restricting the edge to coordination, routing, and canonical state while delegating heavy LLM inference and CI test suites to the home Macs, the Site Factory achieves resilient automation strictly within cloud free tiers.

Caveats & Operational Rules

  • Do not try to run heavy batch compute on the edge: Edge functions have strict CPU time and memory limits; always offload long-running batch jobs and LLM inference to local machines.
  • Respect serverless database row quotas: Serverless SQL databases like D1 cap daily reads and writes (5M reads/day on the free tier); avoid full-table scans and use proper indexes and static caching.

Related Terms

References

  • Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 16 (Serverless Architecture Style)

Verified: 2026-11-08