Databases · head to head
AWS WAF vs Google Cloud Spanner

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

Google Cloud Spanner
Databases
Globally distributed relational database with strong consistency and up to 99.999% availability
- From
- Free
- Free plan
- Yes
The short version
- Google Cloud Spanner is free; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only Google Cloud Spanner lists strong global consistency.
- 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 Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.
How do AWS WAF and Google Cloud Spanner differ?
AWS WAF and Google Cloud Spanner differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and Google Cloud Spanner actually diverge.
| Attribute | AWS WAF | Google Cloud Spanner |
|---|---|---|
| Starting price | $5/month | Free |
| Pricing model | Per web ACL, per rule and per million requests | Usage-based |
| Free tier | No | Yes |
Identical on both: platforms (Web).
Not yet recorded: category for AWS WAF.
Which features does each one have?
They share no listed features; 6 appear only for AWS WAF and 9 only for Google Cloud Spanner. 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 Google Cloud Spanner
- Strong global consistency
- Automatic sharding
- Single, dual and multi-region configurations
- Spanner Graph
- Vector and full-text search
- Columnar engine for analytics
- BigQuery federated queries
- Spanner Omni
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront; Google Cloud Spanner for global transactional systems. 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 Google Cloud Spanner
- Rate limiting login and API endpoints that sit behind CloudFrontnot Google Cloud Spanner
- Adding bot detection to a retail site already hosted on AWSnot Google Cloud Spanner
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Google Cloud Spanner
Google Cloud Spanner
- Global transactional systemsnot AWS WAF
- Mission-critical apps needing 99.999% availabilitynot AWS WAF
- Applications needing relational plus graph and vectornot AWS WAF
- Real-time analytics on operational datanot AWS WAF
- Scaling beyond a single database servernot AWS WAF
Where do AWS WAF and Google Cloud Spanner fall short?
Google Cloud Spanner's most cited limit: pricing has compute, storage, replication and network components. 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
Google Cloud Spanner
- Pricing has compute, storage, replication and network components
- Cost is high for small or single-region workloads
- Tied to Google Cloud outside the Omni option
- Schema and query patterns differ from standard PostgreSQL deployments
How much do AWS WAF and Google Cloud Spanner cost?
AWS WAF starts at $5/mo; Google Cloud Spanner 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
Google Cloud Spanner
FreeNo published plan breakdown. See the Google Cloud Spanner review.
Which should you pick?
Choose Google Cloud Spanner if
- You need strong global consistency.
- You want to start without paying.
- You also want automatic sharding.
Questions people ask
- Is AWS WAF or Google Cloud Spanner 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; Google Cloud Spanner fits global transactional systems. AWS WAF starts at $5/month and Google Cloud Spanner at Free.
- Which is cheaper, AWS WAF or Google Cloud Spanner?
- Google Cloud Spanner has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Google Cloud Spanner.
- Does AWS WAF or Google Cloud Spanner run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use Google Cloud Spanner for free?
- Yes. Google Cloud Spanner 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 Google Cloud Spanner is typically brought in for.
- What can AWS WAF do that Google Cloud Spanner cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph.
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.
Google Cloud Spanner: Is there a free trial?
Yes, a free trial instance lasts 90 days with up to 10 GiB of data.
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.
Google Cloud Spanner: What availability does Spanner offer?
Up to 99.999% availability, depending on configuration.
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.
Google Cloud Spanner: How is Spanner billed?
By hourly compute by edition, plus storage and replication, with committed use discounts of one and three years.
SourceGoogle Cloud Spanner: Can Spanner run outside Google Cloud?
Spanner Omni is a downloadable version for on-premises, other clouds or a laptop.
SourceRelated pages
More on Google Cloud Spanner
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 Azure Cosmos DB
- AWS WAF vs Amazon Aurora
- AWS WAF vs CockroachDB
- AWS WAF vs TiDB
- AWS WAF vs YugabyteDB
- AWS WAF vs Aerospike
- AWS WAF vs PostgreSQL
- AWS WAF vs ArangoDB
- AWS WAF vs Cassandra
- AWS WAF vs MariaDB
- AWS WAF vs Milvus
- AWS WAF vs MongoDB
- AWS WAF vs Estuary
- AWS WAF vs Materialize
- AWS WAF vs Memcached
- AWS WAF vs Neo4j
- AWS WAF vs SQLite
- AWS WAF vs Apache Flink
- Google Cloud Spanner vs Imperva
- Google Cloud Spanner vs FortiWeb
- Google Cloud Spanner vs Sucuri
- Google Cloud Spanner vs Wordfence
- Google Cloud Spanner vs Sophos Firewall
- Google Cloud Spanner vs Clerk
- Google Cloud Spanner vs Transcend
- Google Cloud Spanner vs Hanwha Vision
- Google Cloud Spanner vs Baffle
- Google Cloud Spanner vs Cisco Secure Firewall
- Google Cloud Spanner vs Palo Alto Networks Next-Generation Firewall
- Google Cloud Spanner vs Dashlane
- Google Cloud Spanner vs Mullvad VPN
- Google Cloud Spanner vs JumpCloud
- Google Cloud Spanner vs Genetec Security Center
- Google Cloud Spanner vs Microsoft Sentinel
- Google Cloud Spanner vs IVPN
- Google Cloud Spanner vs FortiMail
- Google Cloud Spanner vs Azure Cosmos DB
- Google Cloud Spanner vs Amazon Aurora
- Google Cloud Spanner vs CockroachDB
- Google Cloud Spanner vs TiDB
- Google Cloud Spanner vs YugabyteDB
- Google Cloud Spanner vs Aerospike
- Google Cloud Spanner vs PostgreSQL
- Google Cloud Spanner vs ArangoDB
- Google Cloud Spanner vs Cassandra
- Google Cloud Spanner vs MariaDB
- Google Cloud Spanner vs Milvus
- Google Cloud Spanner vs MongoDB
- Google Cloud Spanner vs Estuary
- Google Cloud Spanner vs Materialize
- Google Cloud Spanner vs Memcached
- Google Cloud Spanner vs Neo4j
- Google Cloud Spanner vs SQLite
- Google Cloud Spanner vs Apache Flink
