Databases · head to head
AWS WAF vs Valkey

AWS WAF
Databases
Managed web application firewall for CloudFront, load balancers and APIs on AWS
- From
- $5/month
- Free plan
- No

Valkey
Databases
Open-source in-memory data store forked from Redis
- From
- Free
- Free plan
- Yes
The short version
- Valkey is free; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only Valkey lists BSD licensed.
- Where AWS WAF falls short: it only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it.
- Where Valkey falls short: younger project, so its track record is short even though the codebase is not.
How do AWS WAF and Valkey differ?
AWS WAF and Valkey differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and Valkey actually diverge.
Not yet recorded: category for AWS WAF, founded for AWS WAF.
Which features does each one have?
They share no listed features; 6 appear only for AWS WAF 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 AWS WAF
- Web ACLs and rules
- Managed rule groups
- Bot Control
- Fraud Control
- Rate-based rules
- Logging
Only in Valkey
- Redis-compatible
- BSD licensed
- Rich data structures
- Replication and persistence
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Valkey for migrating from Redis without rewriting application code. The jobs each tool is most often brought in to do.
AWS WAF
- Blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancernot Valkey
- Rate limiting login and API endpoints that sit behind CloudFrontnot Valkey
- Adding bot detection to a retail site already hosted on AWSnot Valkey
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Valkey
Valkey
- Continuing on a permissively licensed in-memory store after the Redis licence changenot AWS WAF
- Caching and session storage where a foundation-governed project is a procurement requirementnot AWS WAF
- Migrating from Redis without rewriting application codenot AWS WAF
Where do AWS WAF and Valkey fall short?
Valkey's most cited limit: 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.
AWS WAF
- It only attaches to a fixed list of AWS resources, so applications hosted outside AWS or behind another CDN cannot use it
- Charges come from several meters at once (web ACL, rules, rule groups, requests, logging, and per-feature fees), so predicting a bill needs a worksheet rather than a single price
- Account Takeover Prevention and Fraud Control start at $1,000 per million requests, so protecting a busy login endpoint can cost more than the web ACL itself
- Managed rules ship in count-first workflows and generate false positives on unusual payloads, so someone has to review logs and tune exclusions
- Request body inspection is capped by default, and inspecting beyond the limit or using more than the default capacity units carries extra per-request charges
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 AWS WAF and Valkey cost?
AWS WAF starts at $5/mo; Valkey is free to use. Plan by plan below, from each vendor's own pricing page.
AWS WAF
$5/month- Pay-as-you-go$5/mo
- $5.00 per web ACL per month
- $1.00 per rule and $1.00 per rule group per month
- $0.60 per million requests
- Bot Control$10/mo
- $10.00 per web ACL per month subscription
- Common: $1.00 per million requests, first 10 million free
- Targeted: $10.00 per million requests, first million free
- Account Takeover and Fraud Control$10/mo
- $10.00 per web ACL per month per rule group
- $1,000 per million requests for the first 2 million, falling to $50 per million at the highest tier
Valkey
Free- ValkeyFree
- Full functionality
- Self-hosted
- No usage limits
Which should you pick?
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 AWS WAF or Valkey better?
- It depends on the job. AWS WAF fits blocking SQL injection, cross-site scripting and known bad inputs in front of an Application Load Balancer; Valkey fits continuing on a permissively licensed in-memory store after the Redis licence change. AWS WAF starts at $5/month and Valkey at Free.
- Which is cheaper, AWS WAF or Valkey?
- Valkey has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Valkey.
- Does AWS WAF or Valkey run on more platforms?
- AWS WAF runs on Web. Valkey runs on Linux, macOS, Self-hosted.
- Can I use Valkey for free?
- Yes. Valkey has a free tier, so you can try it without paying. AWS WAF starts at $5/month.
- What is AWS WAF best used for?
- AWS WAF is most often used for blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer, rate limiting login and api endpoints that sit behind cloudfront, adding bot detection to a retail site already hosted on aws, applying one set of waf rules across many accounts through aws firewall manager. Of those, blocking sql injection, cross-site scripting and known bad inputs in front of an application load balancer and rate limiting login and api endpoints that sit behind cloudfront are not what Valkey is typically brought in for.
- What can AWS WAF do that Valkey cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Valkey covers Redis-compatible, BSD licensed, Rich data structures, Replication and persistence.
Answered from the vendors’ own pages
AWS WAF: How much does AWS WAF cost per month?
On pay-as-you-go pricing it is $5.00 per web ACL and $1.00 per rule per month, plus $0.60 per million requests, per the AWS pricing page. Bot Control, fraud rules, CAPTCHA and logging are billed on top.
Valkey: Is Valkey free?
Yes, BSD-licensed open source under the Linux Foundation.
AWS WAF: Does AWS WAF work outside AWS?
No. It protects supported AWS resources such as CloudFront, Application Load Balancer and API Gateway. Origins elsewhere can be covered if they sit behind CloudFront.
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.
AWS WAF: Is AWS WAF included with Shield Advanced?
Shield Advanced includes WAF usage for protected resources, up to 50 billion requests per month and 1,500 capacity units per web ACL, per the Shield pricing page.
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.
Related pages
Other head to heads
- AWS WAF vs Imperva
- AWS WAF vs FortiWeb
- AWS WAF vs Sucuri
- AWS WAF vs Wordfence
- AWS WAF vs Sophos Firewall
- AWS WAF vs Clerk
- AWS WAF vs Transcend
- AWS WAF vs Hanwha Vision
- AWS WAF vs Baffle
- AWS WAF vs Cisco Secure Firewall
- AWS WAF vs Palo Alto Networks Next-Generation Firewall
- AWS WAF vs Microsoft Intune
- AWS WAF vs Surfshark
- AWS WAF vs Jumio
- AWS WAF vs Semgrep
- AWS WAF vs Sumsub
- AWS WAF vs Windscribe
- AWS WAF vs FortiMail
- AWS WAF vs Memcached
- AWS WAF vs Amazon ElastiCache
- AWS WAF vs Dragonfly
- AWS WAF vs Redis
- AWS WAF vs Readyset
- AWS WAF vs etcd
- AWS WAF vs Apache Ignite
- AWS WAF vs VictoriaMetrics
- AWS WAF vs Aiven
- AWS WAF vs MariaDB
- AWS WAF vs Redpanda
- AWS WAF vs Timeplus
- AWS WAF vs dbt
- AWS WAF vs Dremio
- AWS WAF vs Firebase Realtime Database
- AWS WAF vs Immuta
- AWS WAF vs InfluxDB
- AWS WAF vs Knack
- Valkey vs Imperva
- Valkey vs FortiWeb
- Valkey vs Sucuri
- Valkey vs Wordfence
- Valkey vs Sophos Firewall
- Valkey vs Clerk
- Valkey vs Transcend
- Valkey vs Hanwha Vision
- Valkey vs Baffle
- Valkey vs Cisco Secure Firewall
- Valkey vs Palo Alto Networks Next-Generation Firewall
- Valkey vs Microsoft Intune
- Valkey vs Surfshark
- Valkey vs Jumio
- Valkey vs Semgrep
- Valkey vs Sumsub
- Valkey vs Windscribe
- Valkey vs FortiMail
- Valkey vs Memcached
- Valkey vs Amazon ElastiCache
- Valkey vs Dragonfly
- Valkey vs Redis
- Valkey vs Readyset
- Valkey vs etcd
- Valkey vs Apache Ignite
- Valkey vs VictoriaMetrics
- Valkey vs Aiven
- Valkey vs MariaDB
- Valkey vs Redpanda
- Valkey vs Timeplus
- Valkey vs dbt
- Valkey vs Dremio
- Valkey vs Firebase Realtime Database
- Valkey vs Immuta
- Valkey vs InfluxDB
- Valkey vs Knack
