How Cloudflare Requests are Processed

Every request to Cloudflare goes through the same request pipeline, and every node on the Cloudflare network performs each and every task for the request it receives. This article outlines the flow of every request to Cloudflare, so you’ll get an understanding of the order the various features and apps are applied to every request.

A request in this sense is an HTTP request, not a request for an entire web page (which usually consists of 50 or 100 individual requests). A request can be either any type of asset, for example HTML, CSS or images.

How is every request to Cloudflare processed?

1. Visitor sends requests

The process starts with the Visitors browser or any online App that requests an asset or resource.

2. DNS

  1. Translate domain name to Cloudflare IP address via global, Anycast DNS
  2. DNSSEC
  3. CNAME Flattening
  4. Load Balancing
  5. DNS Analytics

3. Security

  1. Detect and mitigate DDOS Attacks
  2. Terminate TLS connection
  3. Check visitor IP against Cloudflare database
  4. Check visitor IP against Customer access rules
  5. Apply custom Rate Limiting
  6. Check request against Web Application Firewall (WAF) rulesets, Cloudflare, OWASP and Custom.

4. Performance

  1. HTTP manipulation
  2. Serve static content from global, tiered cache (Argo Tiered Caching) + Workers
  3. Load balance to Active, Healthy origin
  4. Choose fastest route to origin server for dynamic requests (Argo Smart Routing)

5. Origin (Pool)

  1. Retrieve any uncached dynamic content from the Origin pool (Servebolt Cloud, Google or Amazon)

6. Performance

  1. Accelerate dynamic content (Railgun)
  2. Apply web content optimization features (Auto minify, Image compression)

7. Insights

  1. Aggregate HTTP Analytics
  2. Aggregate Threat Analytics
  3. Aggregate DNS Analytics
  4. Store Enterprise Logs for API retrieval
  5. Insertion of Apps

8. Serve request

The request is served from Cloudflare back to the browser (or any other application initiating the request).

Is it fast?

After seeing this list, it might seem like an awful lot of work for a single request. Especially when just a single page request often consists of tens or even hundreds of requests. Cloudflare has always been about providing a security and CDN solution where performance also plays a lead role. Their continued focus on performance is what’s ensuring that all this work can be done in a matter of milliseconds.