- Category: D. Site Factory System Design
- English term: Free Tier as an Architectural Constraint
- Related: Self-hosted Runner · Edge Computing and Serverless · Static Site Delivery (SSG) · Workers Builds vs. Direct Upload · Architecture Characteristics (-ilities)
General Meaning
In software architecture, operational cost and resource efficiency serve as foundational architecture characteristics (known as -ilities). Traditional cloud architectures often design for elasticity first, relying on dynamic scaling that accepts pay-as-you-go bill spikes. Conversely, systems designed under cost-boundary constraints treat platform free-tier limits not as temporary promotional toys, but as rigid, non-negotiable architectural boundaries.
Designing with free-tier constraints forces engineers to evaluate compute locality, data transfer footprints, and caching strategies before writing application code. By moving computational tasks from billed cloud workers to existing local hardware and employing edge platforms strictly for static asset distribution and lightweight routing, systems can sustain reliable continuous operations indefinitely without incurring recurring infrastructure bills.
Why It Matters
- Preventing catastrophic billing surprises: Unchecked automated background loops and autonomous agent workflows can silently trigger runaway API calls and astronomical cloud bills without strict quota boundaries.
- Achieving indefinite system sustainability: Eliminating recurring server hosting fees ensures that services can remain active indefinitely regardless of development velocity or commercial monetization timelines.
- Driving lean and disciplined architecture: Imposing strict external resource limits strips away redundant intermediate polling, bloated dependencies, and wasteful recalculations, producing resilient and streamlined software.
How the Site Factory Uses It
Triggered by an operational crisis on 2026-10-17 where GitHub Actions reached 90% and Cloudflare Builds reached 44% of their monthly quotas, the Site Factory formalized rule K82 in rules.md ('Free tiers and automated execution') and redesigned its infrastructure (Innovation ⑤ in dashboard/site/index.html). All automated CI testing was offloaded to self-hosted runners (honbu-mini) running continuously on Mac mini and Studio machines, bringing GitHub Actions cloud minutes to zero as outlined in ops/github_runner_plan.md.
Furthermore, the Site Factory migrates active sites from Cloudflare Workers Builds to direct deployment via unkou, pre-renders dashboard views statically to consume zero daily D1 reads during browsing, optimizes /v2/status queries, and maintains daily incremental backups of municipal datasets within the 10GB Cloudflare R2 limit. External LLM usage adheres to rule K104, cascading from local models to lightweight cloud models (Claude Haiku, Codex Luna, Gemini Flash low) and reserving heavy models strictly for warranted final checks.
Caveats & Operational Rules
- Constraint is not system degradation: Designing within free tiers does not mean enduring impaired capability; it requires intelligent functional distribution, assigning heavy computational tasks to local Apple Silicon machines while utilizing edge services solely for fast distribution.
- Continuous consumption tracking is mandatory: Quota usage must be monitored daily across metrics like D1 read rows and runner minutes (
honbu.d1_budget.admission) to catch consumption spikes well before platform limits are breached.
Related Terms
- Self-hosted Runner
- Edge Computing and Serverless
- Static Site Delivery (SSG)
- Workers Builds vs. Direct Upload
- Architecture Characteristics (-ilities)
References
- Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 4 (Defining Architecture Characteristics)
Verified: 2026-11-08