Softwr

Networking · head to head

Cloudflare vs Valkey

Cloudflare logo

Cloudflare

Networking

The web performance and security company

From
Free
Free plan
Yes
Valkey logo

Valkey

Databases

Open-source in-memory data store forked from Redis

From
Free
Free plan
Yes

The short version

  • Valkey is free; Cloudflare starts at $20/mo.
  • Only Cloudflare lists global CDN; only Valkey lists BSD licensed.
  • Where Cloudflare falls short: free tier limited to basic features (no advanced analytics or premium features).
  • Where Valkey falls short: younger project, so its track record is short even though the codebase is not.

How do Cloudflare and Valkey differ?

Cloudflare and Valkey differ on pricing model, platforms and category (Networking against Databases). Only the attributes on which Cloudflare and Valkey actually diverge.

Attributes where Cloudflare and Valkey differ
AttributeCloudflareValkey
Pricing modelFreemiumOpen source, no licence fee; managed cloud billed separately
PlatformsWebLinux, macOS, Self-hosted
CategoryNetworkingDatabases
Founded20092024

Identical on both: starting price (Free), free tier (Yes).

Which features does each one have?

They share no listed features; 20 appear only for Cloudflare and 4 only for Valkey. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Cloudflare

  • Global CDN
  • DDoS Protection
  • WAF
  • DNS
  • SSL/TLS
  • Load Balancing
  • Bot Management
  • Workers (Serverless)

Only in Valkey

  • Redis-compatible
  • BSD licensed
  • Rich data structures
  • Replication and persistence

What is each one used for?

Cloudflare is most often brought in for global content delivery network (CDN) with 330+ data centres worldwide; Valkey for migrating from Redis without rewriting application code. The jobs each tool is most often brought in to do.

Cloudflare

  • Global content delivery network (CDN) with 330+ data centres worldwidenot Valkey
  • DDoS protection and bot blockingnot Valkey
  • Web application security and rate limitingnot Valkey
  • DNS management and domain protectionnot Valkey
  • Static and dynamic content cachingnot Valkey
  • Serverless computing via Cloudflare Workersnot Valkey
  • Database and storage services (D1, R2)not Valkey
  • Performance optimisation for Core Web Vitalsnot Valkey

Valkey

  • Continuing on a permissively licensed in-memory store after the Redis licence changenot Cloudflare
  • Caching and session storage where a foundation-governed project is a procurement requirementnot Cloudflare
  • Migrating from Redis without rewriting application codenot Cloudflare

Where do Cloudflare and Valkey fall short?

Cloudflare's most cited limit: free tier limited to basic features (no advanced analytics or premium features). Valkey's: younger project, so its track record is short even though the codebase is not. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cloudflare

  • Free tier limited to basic features (no advanced analytics or premium features)
  • Pro tier ($20-25/month) caps at professional websites (higher tiers needed for enterprise scale)
  • Caches only anonymous API GET responses (authenticated requests and non-GET methods not cached)
  • Geographic coverage limited to announced 330+ cities (may not cover all regions globally)

Valkey

  • Younger project, so its track record is short even though the codebase is not
  • Divergence from Redis grows over time, so compatibility is strongest near the fork point and weakens as both evolve
  • Ecosystem tooling and documentation still frequently assume Redis, leaving translation work

How much do Cloudflare and Valkey cost?

Cloudflare has a free plan, with paid plans from $20/mo; Valkey is free to use. Plan by plan below, from each vendor's own pricing page.

Cloudflare

Free
  • FreeFree
  • Pro (billed annually)$20/mo
  • Business (billed annually)$200/mo
  • EnterpriseOn request

Valkey

Free
  • ValkeyFree
    • Full functionality
    • Self-hosted
    • No usage limits

Which should you pick?

Choose Cloudflare if

  • You need global cdn.
  • You want to start without paying.
  • You also want ddos protection.

Choose Valkey if

  • You need redis-compatible.
  • You want to start without paying.
  • You work on Linux, macOS, Self-hosted.
  • You also want bsd licensed.

Questions people ask

Is Cloudflare or Valkey better?
It depends on the job. Cloudflare fits global content delivery network (CDN) with 330+ data centres worldwide; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. Cloudflare starts at Free and Valkey at Free.
Which is cheaper, Cloudflare or Valkey?
Cloudflare starts at Free and Valkey at Free.
Does Cloudflare or Valkey run on more platforms?
Cloudflare runs on Web. Valkey runs on Linux, macOS, Self-hosted.
Can I use Cloudflare for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare best used for?
Cloudflare is most often used for global content delivery network (cdn) with 330+ data centres worldwide, ddos protection and bot blocking, web application security and rate limiting, dns management and domain protection. Of those, global content delivery network (cdn) with 330+ data centres worldwide and ddos protection and bot blocking are not what Valkey is typically brought in for.
What can Cloudflare do that Valkey cannot?
Cloudflare covers Global CDN, DDoS Protection, WAF, DNS. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.

Answered from the vendors’ own pages

Cloudflare: Does Cloudflare have a free tier?

Yes, Cloudflare includes a free tier with generous allowances: 100k daily requests for Workers, 10 GB monthly storage for R2, and 1 GB for Workers KV.

Source
Valkey: Is Valkey free?

Yes, BSD-licensed open source under the Linux Foundation.

Cloudflare: How much does Cloudflare cost beyond the free tier?

Cloudflare uses pay-as-you-go pricing beyond free allocations, charging per million requests, per GB-month of storage, or per vCPU-second depending on the service.

Source
Valkey: Why does Valkey exist?

Redis changed its licence away from BSD in 2024. Valkey is the community fork continuing under permissive terms, backed by AWS, Google Cloud and Oracle among others.

Cloudflare: Does Cloudflare charge egress fees?

No, Cloudflare explicitly states no egress fees and no hidden costs; you only pay for the usage metrics specific to each service.

Source
Valkey: Can I switch from Redis to Valkey?

At the fork point it is drop-in compatible with existing clients and data. The further both projects move from that point, the more you should verify the specific features you use.

Cloudflare: What's the Enterprise pricing model for Cloudflare?

Cloudflare Enterprise offers custom pricing and volume discounts available through direct sales for organizations with specialized needs and large-scale usage.

Source
Share

Related pages

Other head to heads