Skip to content

Distributed Build and Edge Caching Architecture

The core of this project lies in balancing “build performance” and “multi-tenancy management (10,000 domains)”. If specific domain groups must be updated hourly, building the entire page at once is impossible. Therefore, an architecture combining Distributed Build and Edge Caching is the solution.


Large-Scale News Generator Solution Comparison

Section titled “Large-Scale News Generator Solution Comparison”
Comparison ItemAstro (Recommended)Hugo (Performance-Optimized)Vite-based (Custom)
Build SpeedModerate (Node.js-based)Overwhelmingly Best (Go engine)Moderate
Component DevelopmentBest (Mixed React/Vue/Svelte)Difficult (Go Template)Excellent (Custom Design)
Multi-Domain ManagementVery Easy (Dynamic Routes)Average (Complex Config)Easy (Custom Implementation)
2025 TrendCurrently Most PreferredStable but declining market shareLibrary nature
Reason for RecommendationMaximizes ad/widget performance with Islands ArchitectureWhen build speed is criticalCustom build pipeline

We recommend the Astro + Cloudflare Pages + Durable Objects combination.

  • News articles are 99% static content. Astro keeps JS close to zero while making only necessary parts interactive.
  • Build Strategy: Avoid building all 200,000 pages at once; perform domain-grouped builds similar to Incremental Static Regeneration (ISR).

2. Deployment & Domains: Cloudflare Pages & Custom Domains

Section titled “2. Deployment & Domains: Cloudflare Pages & Custom Domains”
  • Managing 10,000 Domains: Connect tens of thousands of custom domains via Cloudflare for Platforms (Custom Hostnames), with automatic SSL issuance.
  • Hourly Updates: Schedule domain group build scripts via Cron Triggers using the Wrangler CLI.
  • R2: Stores generated static HTML and news images. No egress fees.
  • D1: Ultra-fast edge queries for news metadata and domain-specific settings.

  1. Build Queue: Place hourly update target domain lists into Upstash QStash, etc., for sequential processing.
  2. Parallel Build Workers: Perform Parallel Build in units of 1,000 domains using GitHub Actions or Cloudflare Workers. Can fully refresh 200,000 pages within about 10 minutes.
  3. Edge Optimization: News articles rarely change once generated, so Cloudflare Cache Rules set long TTLs to minimize origin server load.