APIs · head to head
AWS API Gateway vs Dgraph

AWS API Gateway
APIs
Fully managed API gateway service for creating and managing APIs at scale
- From
- Free
- Free plan
- Yes

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
- AWS API Gateway is a fully managed service.
- Free plans on both; paid from $1/mo and $39/mo.
- Only AWS API Gateway lists REST APIs; only Dgraph lists apache 2.0 licence.
- Where AWS API Gateway falls short: REST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer.
How do AWS API Gateway and Dgraph differ?
AWS API Gateway and Dgraph differ on pricing model (Usage-based against Freemium), platforms and category (APIs against Databases). Only the attributes on which AWS API Gateway and Dgraph actually diverge.
| Attribute | AWS API Gateway | Dgraph |
|---|---|---|
| Pricing model | Usage-based | Freemium |
| Platforms | Web | Linux, macOS, Self-hosted, Web |
| Category | APIs | Databases |
| Founded | 2006 | 2016 |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 9 appear only for AWS API Gateway 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 API Gateway
- REST APIs
- WebSocket APIs
- HTTP APIs
- Lambda
- EC2
- DynamoDB
- CloudWatch
- IAM
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 API Gateway is most often brought in for fronting Lambda functions with an HTTP endpoint. The jobs each tool is most often brought in to do.
AWS API Gateway
- Fronting Lambda functions with an HTTP endpointnot Dgraph
- REST and HTTP API management with throttling and keysnot Dgraph
- WebSocket APIs for real-time clientsnot Dgraph
- Private APIs reachable only inside a VPCnot Dgraph
- Publishing a developer portal for API consumersnot 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 API Gateway
- A knowledge graph that outgrew a single machine and needs storage distributed across nodes without a per-core licence negotiationnot AWS API Gateway
- Recommendation or fraud-detection features that traverse several hops at request time, where a relational join chain has become the bottlenecknot AWS API Gateway
- Teams that want a graph database they can read, fork and self-host under a permissive licence rather than a source-available onenot AWS API Gateway
Where do AWS API Gateway and Dgraph fall short?
AWS API Gateway's most cited limit: data transfer out is charged at $0.09 per GB on top of request pricing. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
AWS API Gateway
- REST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer
- Data transfer out is charged at $0.09 per GB on top of request pricing
- WebSocket APIs bill connection minutes as well as messages, at $0.25 per million minutes
- Private APIs avoid data transfer charges but incur AWS PrivateLink costs instead
- The developer portal is $125 a month, with additional portal products at $12.50 each
- The free tier lasts 12 months rather than being ongoing
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 API Gateway and Dgraph cost?
AWS API Gateway has a free plan, with paid plans from $1/mo; Dgraph has a free plan, with paid plans from $39/mo. Plan by plan below, from each vendor's own pricing page.
AWS API Gateway
Free- Free Tier (12 months)Free
- 1M REST API calls per month
- 1M HTTP API calls per month
- 1M WebSocket messages plus 750K connection minutes per month
- HTTP APIs$1
- First 300M: $1.00 per million
- Next 132M: $0.90 per million
- Data transfer varies by volume
- REST APIs$3.5
- Edge Optimized and Regional: $3.50 per million (first tier)
- Higher volumes: $2.80 then $2.38 per million
- Data transfer: $0.09 per GB
- WebSocket APIs$1
- Messages: $1.00 per million
- Connection minutes: $0.25 per million minutes
Dgraph
Free- CommunityFree
- Native GraphQL
- Graph queries
- Full-text search
- Cloud$39/mo
- Managed service
- Auto-scaling
- Enterprise support
Which should you pick?
Choose AWS API Gateway if
- You need rest apis.
- You want to start without paying.
- You also want websocket apis.
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 API Gateway or Dgraph better?
- It depends on the job. AWS API Gateway fits fronting Lambda functions with an HTTP endpoint; 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 API Gateway starts at Free and Dgraph at Free.
- Which is cheaper, AWS API Gateway or Dgraph?
- AWS API Gateway starts at Free and Dgraph at Free.
- Does AWS API Gateway or Dgraph run on more platforms?
- AWS API Gateway runs on Web. Dgraph runs on Linux, macOS, Self-hosted, Web.
- Can I use AWS API Gateway for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is AWS API Gateway best used for?
- AWS API Gateway is most often used for fronting lambda functions with an http endpoint, rest and http api management with throttling and keys, websocket apis for real-time clients, private apis reachable only inside a vpc. Of those, fronting lambda functions with an http endpoint and rest and http api management with throttling and keys are not what Dgraph is typically brought in for.
- What can AWS API Gateway do that Dgraph cannot?
- AWS API Gateway covers REST APIs, WebSocket APIs, HTTP APIs, Lambda. Dgraph covers Apache 2.0 licence, Generated GraphQL API, DQL query language, Predicate sharding.
Answered from the vendors’ own pages
AWS API Gateway: How much does AWS API Gateway cost?
AWS API Gateway pricing varies by API type. HTTP APIs cost $1.00 per million requests for the first 300M monthly, then $0.90 per million. REST APIs cost $3.50 per million, and WebSocket APIs cost $1.00 per million messages plus $0.25 per million connection minutes. Data transfer charges ($0.09 per GB) apply separately.
SourceDgraph: 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 API Gateway: Is AWS API Gateway free?
New AWS customers receive 12 months of free tier access including 1 million REST API calls, 1 million HTTP API calls, and 1 million WebSocket messages plus 750,000 connection minutes per month. Starting July 15, 2025, new customers receive up to $200 in AWS Free Tier credits.
SourceDgraph: 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 API Gateway: What is the price difference between HTTP and REST APIs?
HTTP APIs are significantly cheaper at $1.00 per million requests compared to REST APIs at $3.50 per million (first tier). REST API pricing decreases to $2.80 and $2.38 per million for higher volumes, while HTTP API pricing drops to $0.90 per million after 300M monthly requests.
SourceDgraph: 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.
AWS API Gateway: How much does an API Gateway Portal cost?
API Gateway Portals require a base fee of $125 per month (includes 10 PortalProducts with 40 endpoints each) plus $12.50 per month for each additional PortalProduct beyond the included 10.
SourceDgraph: 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
More on AWS API Gateway
Other head to heads
- AWS API Gateway vs Microsoft Azure API Management
- AWS API Gateway vs Zuplo
- AWS API Gateway vs Kong Gateway
- AWS API Gateway vs IBM API Connect
- AWS API Gateway vs Tyk
- AWS API Gateway vs Gravitee
- AWS API Gateway vs Apigee
- AWS API Gateway vs Boomi API Management
- AWS API Gateway vs Convoy
- AWS API Gateway vs Janus Gateway
- AWS API Gateway vs Spring Cloud Gateway
- AWS API Gateway vs Zeplo
- AWS API Gateway vs Volt
- AWS API Gateway vs Zimpler
- AWS API Gateway vs 3scale
- AWS API Gateway vs Basis Theory
- AWS API Gateway vs curl
- AWS API Gateway vs Flybits
- AWS API Gateway vs ArangoDB
- AWS API Gateway vs Neo4j
- AWS API Gateway vs Azure Cosmos DB
- AWS API Gateway vs SurrealDB
- AWS API Gateway vs Elasticsearch
- AWS API Gateway vs Couchbase
- AWS API Gateway vs Cassandra
- AWS API Gateway vs Aerospike
- AWS API Gateway vs Firebase Realtime Database
- AWS API Gateway vs ScyllaDB
- AWS API Gateway vs FaunaDB
- AWS API Gateway vs RavenDB
- AWS API Gateway vs Nile
- AWS API Gateway vs Readyset
- AWS API Gateway vs SAP HANA
- AWS API Gateway vs Vertica
- AWS API Gateway vs Airtable
- AWS API Gateway vs Supabase
- Dgraph vs Microsoft Azure API Management
- Dgraph vs Zuplo
- Dgraph vs Kong Gateway
- Dgraph vs IBM API Connect
- Dgraph vs Tyk
- Dgraph vs Gravitee
- Dgraph vs Apigee
- Dgraph vs Boomi API Management
- Dgraph vs Convoy
- Dgraph vs Janus Gateway
- Dgraph vs Spring Cloud Gateway
- Dgraph vs Zeplo
- Dgraph vs Volt
- Dgraph vs Zimpler
- Dgraph vs 3scale
- Dgraph vs Basis Theory
- Dgraph vs curl
- Dgraph vs Flybits
- 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 Nile
- Dgraph vs Readyset
- Dgraph vs SAP HANA
- Dgraph vs Vertica
- Dgraph vs Airtable
- Dgraph vs Supabase
