Orange Book
Architecture

Architecture: ownership along one request

Understand the Cloudflare request lifecycle through responsibility boundaries, data flow, and failure ownership.

Edited and verified by Orange Book Editorial Team ·

ARCHITECTURE · REQUEST BOUNDARIESLogical viewVerified: 2026-08-26

An architecture page answers “who owns this part?” rather than repeating procedural steps. The diagram shows one primary request flow; DNS management, asynchronous logs, and cache tiers belong in focused diagrams.

Cloudflare primary request lifecycle architecture diagram
The primary path stays at one abstraction level; control-plane and asynchronous observability flows are modeled separately.Open original
Detailed description
The client resolves DNS and connects to the Cloudflare edge. The edge owns TLS, policy, and cache decisions and runs code when a Worker route matches. The Worker can respond directly or fetch the origin before the response returns to the client.
  1. 01
    Client boundary

    Owns intent, method, URL, and client-side caching.

  2. 02
    DNS boundary

    Owns name resolution and proxy entry selection.

  3. 03
    Edge boundary

    Owns TLS, rules, security, and cache evaluation.

  4. 04
    Compute boundary

    Worker code owns application-level edge logic.

  5. 05
    Origin boundary

    Owns source data and compute not completed at the edge.

Key architecture decisions

DecisionDefaultChange it when
Run a Worker?Add it only for application logicAuthorization, rewriting, aggregation, edge API
Fetch the origin?Respond directly when possibleSource data, dynamic rendering, or writes are required
Cache?Start from freshness and privacyData is public, reusable, and has an invalidation plan
Own a failure?Place it with evidenceNever use “Cloudflare is broken” as a diagnosis

Runtime boundaries are not plan guesses

Verified service facts

Free limits that directly affect this deployment architecture

Cloudflare can change plans and limits; reopen the primary source before implementation.

Product / planCurrent factScope and caveat
WorkersWorkers FreeDynamic requests100,000 requests / day

Resets daily at 00:00 UTC; static asset requests are excluded.

Verified · Source updated Primary source
WorkersWorkers FreeHTTP request CPU time10 ms / invocation

Time waiting on network, KV, or database I/O is not CPU time.

Verified · Source updated Primary source
WorkersWorkers FreeCompressed Worker size3 MB (gzip)

Use the gzip size reported by a Wrangler dry run.

Verified · Source updated Primary source

An arrow is not a deployment guarantee

A Worker can return directly and does not have to visit the origin. The diagram shows an allowed primary path; logs, headers, and tests establish what a real request did.

Architecture review checklist

  • Does every node have one clear responsibility?
  • Is Worker failure fail open or fail closed, and does that match the security goal?
  • Does the origin trust only expected entry points, and does sensitive data cross unnecessary boundaries?
  • Have cache state and application state been treated as different concepts?

For cache anomalies, use the cache-status runbook.

Primary sources

Did this page help you complete your goal?

Beta feedback is generated in this browser and is never uploaded automatically.

On this page