Databases · head to head
AWS WAF vs CockroachDB

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

CockroachDB
Databases
The cloud-native distributed SQL database
- From
- Free
- Free plan
- Yes
The short version
- CockroachDB is a cloud-native distributed SQL database.
- CockroachDB has a free plan, then $0.057/mo; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only CockroachDB lists distributed SQL.
- 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 CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
How do AWS WAF and CockroachDB differ?
AWS WAF and CockroachDB differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and CockroachDB actually diverge.
| Attribute | AWS WAF | CockroachDB |
|---|---|---|
| Starting price | $5/month | Free |
| Pricing model | Per web ACL, per rule and per million requests | Freemium |
| Free tier | No | Yes |
| Platforms | Web | AWS, GCP, Azure |
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 20 only for CockroachDB. 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 CockroachDB
- Distributed SQL
- Automatic Sharding
- Multi-region Replication
- Geo-partitioning
- ACID Transactions
- Horizontal Scaling
- Survivability
- PostgreSQL Compatibility
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; CockroachDB for distributed SQL database for scalable applications. 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 CockroachDB
- Rate limiting login and API endpoints that sit behind CloudFrontnot CockroachDB
- Adding bot detection to a retail site already hosted on AWSnot CockroachDB
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot CockroachDB
CockroachDB
- Distributed SQL database for scalable applicationsnot AWS WAF
- Multi-region deployment and failovernot AWS WAF
Where do AWS WAF and CockroachDB fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). 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
CockroachDB
- Basic and Standard tiers limited to AWS and GCP (select regions only)
- Azure support restricted to Advanced tier only
- Basic tier limited to 50 million RUs and 10 GiB storage per month
- Advanced tier starts at $0.60/hour for 4 vCPUs minimum
- 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced
How much do AWS WAF and CockroachDB cost?
AWS WAF starts at $5/mo; CockroachDB has a free plan, with paid plans from $0.057/mo. 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
CockroachDB
Free- Standard$0.057/vcpu-hour
- Mission Critical$0.162/vcpu-hour
Which should you pick?
Choose CockroachDB if
- You need distributed sql.
- You want to start without paying.
- You work on AWS, GCP, Azure.
- You also want automatic sharding.
Questions people ask
- Is AWS WAF or CockroachDB 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; CockroachDB fits distributed SQL database for scalable applications. AWS WAF starts at $5/month and CockroachDB at Free.
- Which is cheaper, AWS WAF or CockroachDB?
- CockroachDB has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for CockroachDB.
- Does AWS WAF or CockroachDB run on more platforms?
- AWS WAF runs on Web. CockroachDB runs on AWS, GCP, Azure.
- Can I use CockroachDB for free?
- Yes. CockroachDB 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 CockroachDB is typically brought in for.
- What can AWS WAF do that CockroachDB cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning.
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.
CockroachDB: What does the free Basic tier include?
The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.
SourceAWS 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.
CockroachDB: How much do the paid tiers cost?
Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.
SourceAWS 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.
CockroachDB: What are the storage limits for each tier?
Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.
SourceCockroachDB: Can I get trial credits before paying?
Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.
SourceCockroachDB: Do legacy contracts have different pricing?
Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.
SourceRelated pages
More on CockroachDB
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 Dashlane
- AWS WAF vs Mullvad VPN
- AWS WAF vs JumpCloud
- AWS WAF vs Genetec Security Center
- AWS WAF vs Microsoft Sentinel
- AWS WAF vs IVPN
- AWS WAF vs FortiMail
- AWS WAF vs YugabyteDB
- AWS WAF vs PostgreSQL
- AWS WAF vs SingleStore
- AWS WAF vs Google Cloud SQL
- AWS WAF vs Amazon Aurora
- AWS WAF vs Neon
- AWS WAF vs Oracle Database
- AWS WAF vs TiDB
- AWS WAF vs Apache Ignite
- AWS WAF vs EDB Postgres
- AWS WAF vs Azure Cosmos DB
- AWS WAF vs TimescaleDB
- AWS WAF vs Trino
- AWS WAF vs Weaviate
- AWS WAF vs ArangoDB
- AWS WAF vs Google Cloud Spanner
- AWS WAF vs Apache Pinot
- AWS WAF vs BigQuery
- CockroachDB vs Imperva
- CockroachDB vs FortiWeb
- CockroachDB vs Sucuri
- CockroachDB vs Wordfence
- CockroachDB vs Sophos Firewall
- CockroachDB vs Clerk
- CockroachDB vs Transcend
- CockroachDB vs Hanwha Vision
- CockroachDB vs Baffle
- CockroachDB vs Cisco Secure Firewall
- CockroachDB vs Palo Alto Networks Next-Generation Firewall
- CockroachDB vs Dashlane
- CockroachDB vs Mullvad VPN
- CockroachDB vs JumpCloud
- CockroachDB vs Genetec Security Center
- CockroachDB vs Microsoft Sentinel
- CockroachDB vs IVPN
- CockroachDB vs FortiMail
- CockroachDB vs YugabyteDB
- CockroachDB vs PostgreSQL
- CockroachDB vs SingleStore
- CockroachDB vs Google Cloud SQL
- CockroachDB vs Amazon Aurora
- CockroachDB vs Neon
- CockroachDB vs Oracle Database
- CockroachDB vs TiDB
- CockroachDB vs Apache Ignite
- CockroachDB vs EDB Postgres
- CockroachDB vs Azure Cosmos DB
- CockroachDB vs TimescaleDB
- CockroachDB vs Trino
- CockroachDB vs Weaviate
- CockroachDB vs ArangoDB
- CockroachDB vs Google Cloud Spanner
- CockroachDB vs Apache Pinot
- CockroachDB vs BigQuery
