Cloudflare vs Fastly
Cloudflare and Fastly both run edge networks that cache content, run code close to users and filter attacks. This comparison sets them side by side on cache configuration, purging, edge compute, security, logging and pricing, and says which fits which situation.
Cloudflare sells fixed monthly plans, from a free plan up to Business, with a custom Contract plan above it. Fastly bills by usage from a free allowance and sells monthly packages, some with a published price. Cloudflare configures caching through rules. Fastly runs every service on VCL, a configuration language that grew out of the Varnish proxy cache.
Prices and other facts are as of October 29, 2026. Vendors change prices; confirm them on the vendor’s own pricing page. Independent analysis: neither project nor any vendor named here paid for or reviewed this page.
The quick read
Choose Cloudflare when
- you want a CDN, WAF and DDoS protection at a fixed monthly price
- your developers want to write edge code in JavaScript, TypeScript, Python or Rust
- you want unmetered DDoS protection on every plan, including Free
Choose Fastly when
- your team wants to write cache logic in a configuration language rather than set rules
- you want edge code compiled to WebAssembly, with a new sandbox for each request
- you want to run the WAF on your own servers as well as at the edge
Who they are
Cloudflare is a public company listed on the NYSE as NET, based in San Francisco. Revenue for the second quarter of 2026 was $696.1 million, up 36% year over year.
Fastly is a public company listed on Nasdaq as FSLY, based in San Francisco. It moved its listing from the NYSE to the Nasdaq Global Select Market on or about December 9, 2025, keeping the FSLY ticker. Revenue for the second quarter of 2026 was $183.3 million, up 23% year over year. Security revenue was $41.7 million of it, up 43%. Kip Compton is CEO.
Fastly completed its acquisition of Signal Sciences, a web application and API security company, on October 1, 2020.
How they compare
Compared on vendor documentation, published prices and second-quarter 2026 results, as of October 2026.
Cache configuration
Cloudflare
Cache Rules set what is cached, for how long and where. Free gets 10 rules, Pro 25, Business 50 and Enterprise 300. Cache Reserve, persistent object storage for cache, is a usage-based add-on.
Fastly
Every service runs on Fastly VCL. Settings made in the web interface or API become generated VCL. You can upload your own VCL file to replace the generated one.
Cloudflare caps rules by plan; Fastly lets you replace the whole configuration with your own code.
Purging
Cloudflare
Purge by URL, hostname, tag, prefix or everything, on every plan. Rate limits rise by plan, from 5 requests a minute on Free to 50 a second on Enterprise for tag, hostname and prefix purges. In September 2024, Cloudflare reported a global median under 150 ms for those purges.
Fastly
Purge by URL, by surrogate key or everything in a service. A soft purge marks an object stale instead of removing it. URL and key purges are limited to an average of 100,000 an hour per customer. Fastly reports a mean global purge time of 150 ms.
Both purge by tag in about the same reported time; Fastly adds soft purge, which keeps a stale copy while the origin refetches.
Edge compute
Cloudflare
Workers runs on the V8 engine in isolates. JavaScript, TypeScript, Python and Rust have first-class support, and other languages run through WebAssembly. Around it sit R2, D1, KV, Durable Objects and Workers AI.
Fastly
Fastly Compute compiles code to WebAssembly and runs it on Wasmtime. Official SDKs cover Rust, JavaScript, Go and C++. By default each request starts a new sandbox. Key Value Store, Object Storage and Secret Store sit beside it.
Cloudflare runs JavaScript natively and WebAssembly as an option; Fastly runs everything as WebAssembly.
Application security and DDoS
Cloudflare
Custom WAF rules and the Free Managed Ruleset are on every plan. The Cloudflare Managed Ruleset and OWASP Core Ruleset start at Pro. Unmetered DDoS protection for layers 3 to 7 is on every plan. Bot Management for Enterprise is a paid add-on.
Fastly
The Next-Gen WAF, from the Signal Sciences acquisition, deploys at Fastly's edge, in the cloud, or as an agent and module on your own infrastructure. DDoS Protection must be purchased and is off by default. Bot Management, API Security and Client-Side Protection are sold through sales.
Cloudflare includes WAF rules and DDoS protection in its plans; Fastly sells each as a separate product.
Logging and observability
Cloudflare
Logpush sends logs to storage services, SIEMs and log providers on every plan. Instant Logs shows HTTP requests live in the dashboard or CLI. Log Explorer stores logs in Cloudflare at $1 per GB ingested, with the first 10 GB free. The GraphQL Analytics API serves performance and security data from one endpoint.
Fastly
Log streaming sends logs to 29 listed endpoints, including Amazon S3, BigQuery, Datadog, Kafka and Splunk. Origin Inspector and Domain Inspector show real-time and historical traffic without a third-party collector. Log Explorer & Insights keeps logs for 7 days and needs a paid Observability package.
Both stream logs to outside tools; Fastly sells its own dashboards and log search as a separate package.
Pricing model
Cloudflare
US list price as of October 2026: Free at $0. Pro at $20 a month billed annually or $25 monthly. Business at $200 a month billed annually or $250 monthly. The top plan, Contract, is custom and billed annually. Workers Paid has a $5 monthly minimum, with 10 million requests included, then $0.30 per million.
Fastly
US list price as of October 2026: a Free plan includes 100 GB of delivery bandwidth and 1 million requests a month, then usage rates such as $0.12 per GB in North America and Europe. Network Services Basic is $1,500 a month and Starter $6,000. Compute Starter is $500 a month. Observability Starter is $1,500 a month. Higher packages and all Security packages are contact sales.
Cloudflare's plans cap features at a fixed price; Fastly's charges grow with traffic or start at package prices.
Which is faster?
Neither vendor publishes a test that settles it. Both report purges in about 150 ms, measured by each on its own network. Speed for a given site depends on where its users are, its cache hit ratio and its origin. Run the same traffic through both on a trial before deciding.
Common situations
A small team needs a CDN and WAF this week
Cloudflare. Pro is $20 a month billed annually and includes the Cloudflare Managed Ruleset and unmetered DDoS protection.
Cache behavior needs logic that rules cannot express
Fastly. A custom VCL file replaces the generated configuration for the whole service.
Edge code must be written in Go or C++
Either. Fastly has official Go and C++ SDKs for Compute. Cloudflare Workers runs Go and C++ through WebAssembly.
The WAF must also cover applications outside the CDN
Fastly. The Next-Gen WAF can run as an agent and module on your own infrastructure.
Quick answers
Is Fastly still listed on the NYSE?
No. Fastly moved its listing to the Nasdaq Global Select Market on or about December 9, 2025. The ticker is still FSLY.
Does Fastly have a free plan?
Yes. The Free plan includes a monthly allowance for each product, such as 100 GB of delivery bandwidth, 1 million delivery requests and 10 million Compute requests.
Does Cloudflare charge for DDoS protection?
Not for standard protection. Unmetered DDoS protection for layers 3 to 7 is on every plan. Advanced DDoS Protection and Magic Transit are Enterprise options.
Sources
- Cloudflare Announces Second Quarter 2026 Financial Results
- Fastly Announces Second Quarter 2026 Financial Results (SEC exhibit 99.1)
- Fastly Announces Listing Transfer to Nasdaq (SEC exhibit 99.1)
- Fastly Completes Acquisition of Signal Sciences
- Cloudflare Network and CDN plans
- Cloudflare Cache Rules
- Cloudflare purge cache
- Cloudflare Instant Purge blog post
- Cloudflare Workers
- Cloudflare Workers languages
- How Workers works
- Cloudflare Workers pricing
- Cloudflare WAF managed rules
- Cloudflare WAF custom rules
- Cloudflare DDoS protection
- Cloudflare Bot Management for Enterprise
- Cloudflare Logs
- Cloudflare Logpush
- Cloudflare Analytics
- Fastly pricing
- About Fastly VCL
- Fastly purging
- Fastly Instant Purge: under 150ms for over a decade
- Getting started with Fastly Compute
- Fastly security products
- About Fastly DDoS Protection
- Fastly web application and API protection
- Fastly log streaming
- Fastly observability features
- Fastly Log Explorer & Insights
Keep reading
Working documents for technology leaders, free with a work email.
AI is billed per use, so its cost grows with adoption while the rest of the budget is under review.