Databases · head to head
AWS WAF vs Dgraph

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

Dgraph
Databases
Apache 2.0 distributed graph database written in Go, maintained by Hypermode, queried through GraphQL or its own DQL language.
- From
- Free
- Free plan
- Yes
The short version
- Dgraph has a free plan, then $39/mo; AWS WAF starts at $5/mo.
- Only AWS WAF lists web ACLs and rules; only Dgraph lists apache 2.0 licence.
- 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.
How do AWS WAF and Dgraph differ?
AWS WAF and Dgraph differ on starting price ($5/month against Free), pricing model and free tier (No against Yes). Only the attributes on which AWS WAF and Dgraph 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 10 only for Dgraph. 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 Dgraph
- Apache 2.0 licence
- Generated GraphQL API
- DQL query language
- Predicate sharding
- Raft replication
- Distributed ACID transactions
- Written in Go
- Full-text and geo indexing
What is each one used for?
AWS WAF is most often brought in for rate limiting login and API endpoints that sit behind CloudFront. 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 Dgraph
- Rate limiting login and API endpoints that sit behind CloudFrontnot Dgraph
- Adding bot detection to a retail site already hosted on AWSnot Dgraph
- Applying one set of WAF rules across many accounts through AWS Firewall Managernot Dgraph
Dgraph
- An application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQLnot AWS WAF
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot AWS WAF
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot AWS WAF
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot AWS WAF
Where do AWS WAF and Dgraph fall short?
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
Dgraph
- Sharding is by predicate, so a single very hot predicate lives entirely in one Raft group and cannot be split further; adding nodes does not relieve it and the fix is a data model change
- Stewardship passed from Dgraph Labs to Hypermode after the original company stopped operating independently, so anyone building on it is betting on a second custodian rather than on the original team's roadmap
- The GraphQL layer is generated and opinionated, so anything it does not express drops you into DQL, which is a second language your team must learn and which no other database speaks
- The community is a fraction of Neo4j's, so operational answers, tuning experience, hiring and third-party tooling are all thinner, and unusual failure modes in a Zero and Alpha cluster leave you reading source rather than a forum
- There is no portable graph standard to migrate to; Cypher, Gremlin and SPARQL are all different query models, so the schema and every query is a rewrite if you later leave, and that cost grows with the application
How much do AWS WAF and Dgraph cost?
AWS WAF starts at $5/mo; Dgraph has a free plan, with paid plans from $39/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
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
Which should you pick?
Choose Dgraph if
- You need apache 2.0 licence.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted, Web.
- You also want generated graphql api.
Questions people ask
- Is AWS WAF or Dgraph 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; Dgraph fits an application whose core data is a graph, such as permissions, social connections or product relationships, where the frontend already consumes GraphQL. AWS WAF starts at $5/month and Dgraph at Free.
- Which is cheaper, AWS WAF or Dgraph?
- Dgraph has a free tier; the other does not. Paid plans start at $5/month for AWS WAF and Free for Dgraph.
- Does AWS WAF or Dgraph run on more platforms?
- AWS WAF runs on Web. Dgraph runs on Linux, macOS, Self-hosted, Web.
- Can I use Dgraph for free?
- Yes. Dgraph 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 Dgraph is typically brought in for.
- What can AWS WAF do that Dgraph cannot?
- AWS WAF covers Web ACLs and rules, Managed rule groups, Bot Control, Fraud Control. Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding.
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.
Dgraph: Is Dgraph open source?
Yes. The current repository is Apache 2.0, which is a permissive OSI licence, and the project is at v25 under Hypermode's maintenance.
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.
Dgraph: Is it really GraphQL?
It serves a generated GraphQL API, which is real GraphQL for clients. Its native language, DQL, resembles GraphQL syntactically but is Dgraph's own language and is not the GraphQL specification.
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.
Dgraph: How does it compare to Neo4j?
Neo4j has the larger ecosystem, Cypher, and far more operational precedent. Dgraph distributes storage across nodes by default and gives you a GraphQL endpoint without writing resolvers. The choice usually turns on whether you need horizontal scale and a GraphQL surface more than you need ecosystem depth.
Dgraph: What does a production cluster look like?
At minimum a set of Zero nodes for coordination and a replicated set of Alpha nodes for data, typically three of each for fault tolerance, which is a meaningfully larger operational footprint than a single graph server.
Dgraph: Who maintains it now?
Hypermode. Dgraph Labs, the original company, no longer operates it, and that change of custodian is the main non-technical risk to weigh.
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 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 ArangoDB
- AWS WAF vs Neo4j
- AWS WAF vs Azure Cosmos DB
- AWS WAF vs SurrealDB
- AWS WAF vs Elasticsearch
- AWS WAF vs Couchbase
- AWS WAF vs Cassandra
- AWS WAF vs Aerospike
- AWS WAF vs Firebase Realtime Database
- AWS WAF vs ScyllaDB
- AWS WAF vs FaunaDB
- AWS WAF vs RavenDB
- AWS WAF vs Estuary
- AWS WAF vs Materialize
- AWS WAF vs Memcached
- AWS WAF vs Milvus
- AWS WAF vs SQLite
- AWS WAF vs TiDB
- Dgraph vs Imperva
- Dgraph vs FortiWeb
- Dgraph vs Sucuri
- Dgraph vs Wordfence
- Dgraph vs Sophos Firewall
- Dgraph vs Clerk
- Dgraph vs Transcend
- Dgraph vs Hanwha Vision
- Dgraph vs Baffle
- Dgraph vs Cisco Secure Firewall
- Dgraph vs Palo Alto Networks Next-Generation Firewall
- Dgraph vs Dashlane
- Dgraph vs Mullvad VPN
- Dgraph vs JumpCloud
- Dgraph vs Genetec Security Center
- Dgraph vs Microsoft Sentinel
- Dgraph vs IVPN
- Dgraph vs FortiMail
- Dgraph vs ArangoDB
- Dgraph vs Neo4j
- Dgraph vs Azure Cosmos DB
- Dgraph vs SurrealDB
- Dgraph vs Elasticsearch
- Dgraph vs Couchbase
- Dgraph vs Cassandra
- Dgraph vs Aerospike
- Dgraph vs Firebase Realtime Database
- Dgraph vs ScyllaDB
- Dgraph vs FaunaDB
- Dgraph vs RavenDB
- Dgraph vs Estuary
- Dgraph vs Materialize
- Dgraph vs Memcached
- Dgraph vs Milvus
- Dgraph vs SQLite
- Dgraph vs TiDB
