Databases · head to head
Amazon DocumentDB vs AWS API Gateway

Amazon DocumentDB
Databases
Managed MongoDB-compatible document database service on AWS
- From
- On request
- Free plan
- No

AWS API Gateway
APIs
Fully managed API gateway service for creating and managing APIs at scale
- From
- Free
- Free plan
- Yes
The short version
- Amazon DocumentDB is a managed document database on AWS; AWS API Gateway is a fully managed service.
- AWS API Gateway starts at $1/mo; Amazon DocumentDB prices on request.
- Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only AWS API Gateway lists REST APIs.
- Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
- 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.
- Prices and features on this page were last checked on 25 November 2026.
How do Amazon DocumentDB and AWS API Gateway differ?
Amazon DocumentDB and AWS API Gateway differ on starting price (On request against Free), free tier (No against Yes) and category (Databases against APIs). Only the attributes on which Amazon DocumentDB and AWS API Gateway actually diverge.
| Attribute | Amazon DocumentDB | AWS API Gateway |
|---|---|---|
| Starting price | On request | Free |
| Free tier | No | Yes |
| Category | Databases | APIs |
Identical on both: pricing model (Usage-based), platforms (Web).
Not yet recorded: founded for Amazon DocumentDB.
Which features does each one have?
They share no listed features; 8 appear only for Amazon DocumentDB and 9 only for AWS API Gateway. 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 Amazon DocumentDB
- MongoDB driver and tool compatibility
- Managed patching, backups and monitoring
- Serverless capacity scaling
- Elastic clusters
- Global clusters across up to 10 AWS Regions
- I/O-Optimized pricing configuration
- CloudWatch, IAM and AWS Backup integration
- Zero ETL to Amazon OpenSearch Service
Only in AWS API Gateway
- REST APIs
- WebSocket APIs
- HTTP APIs
- Lambda
- EC2
- DynamoDB
- CloudWatch
- IAM
What is each one used for?
Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; AWS API Gateway for fronting Lambda functions with an HTTP endpoint. The jobs each tool is most often brought in to do.
Amazon DocumentDB
- Migrating MongoDB workloads to AWSnot AWS API Gateway
- Content and catalogue document storesnot AWS API Gateway
- Serverless document databases for variable loadnot AWS API Gateway
- Multi region read replicas for disaster recoverynot AWS API Gateway
AWS API Gateway
- Fronting Lambda functions with an HTTP endpointnot Amazon DocumentDB
- REST and HTTP API management with throttling and keysnot Amazon DocumentDB
- WebSocket APIs for real-time clientsnot Amazon DocumentDB
- Private APIs reachable only inside a VPCnot Amazon DocumentDB
- Publishing a developer portal for API consumersnot Amazon DocumentDB
Where do Amazon DocumentDB and AWS API Gateway fall short?
Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. AWS API Gateway's: 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.
Amazon DocumentDB
- Runs only on AWS; it cannot run on premises or across cloud providers
- Compatible with MongoDB rather than identical, with no time series collection support
- Cost combines instance, storage, I/O and backup charges, which are harder to forecast
- Free tier allowance lasts 30 days for new accounts and is excluded in some regions
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
How much do Amazon DocumentDB and AWS API Gateway cost?
AWS API Gateway has a free plan, with paid plans from $1/mo. Plan by plan below, from each vendor's own pricing page.
Amazon DocumentDB
On requestNo published plan breakdown. See the Amazon DocumentDB review.
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
Which should you pick?
Choose Amazon DocumentDB if
- You need mongodb driver and tool compatibility.
- You also want managed patching, backups and monitoring.
Choose AWS API Gateway if
- You need rest apis.
- You want to start without paying.
- You also want websocket apis.
Questions people ask
- Is Amazon DocumentDB or AWS API Gateway better?
- Neither clearly leads. Amazon DocumentDB starts at On request and AWS API Gateway at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
- Which is cheaper, Amazon DocumentDB or AWS API Gateway?
- AWS API Gateway has a free tier; the other does not. Paid plans start at On request for Amazon DocumentDB and Free for AWS API Gateway.
- Does Amazon DocumentDB or AWS API Gateway run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use AWS API Gateway for free?
- Yes. AWS API Gateway has a free tier, so you can try it without paying. Amazon DocumentDB starts at On request.
- What is Amazon DocumentDB best used for?
- Amazon DocumentDB is most often used for migrating mongodb workloads to aws, content and catalogue document stores, serverless document databases for variable load, multi region read replicas for disaster recovery. Of those, migrating mongodb workloads to aws and content and catalogue document stores are not what AWS API Gateway is typically brought in for.
- What can Amazon DocumentDB do that AWS API Gateway cannot?
- Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. AWS API Gateway covers REST APIs, WebSocket APIs, HTTP APIs, Lambda.
Answered from the vendors’ own pages
Amazon DocumentDB: Is DocumentDB the same as MongoDB?
No. It is MongoDB compatible: existing MongoDB drivers and tools work, but Wikipedia notes it supports MongoDB 3.6 and 4.0 with later partial 5.0 compliance and no time series collections.
SourceAWS 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.
SourceAmazon DocumentDB: How is DocumentDB priced?
Pay as you go. Provisioned clusters are billed for instances per second, I/O, storage and backup storage, while serverless uses DocumentDB Capacity Units billed per second.
SourceAWS 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.
SourceAmazon DocumentDB: Is there a free tier?
New AWS accounts get one month: 750 hours a month of db.t3.medium, 30 million I/Os, 5 GB storage and 5 GB backup. It is not available in AWS GovCloud (US) or China (Ningxia).
SourceAWS 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.
SourceAmazon DocumentDB: Can it run outside AWS?
No. Wikipedia says it runs only on AWS and cannot span cloud providers or run on premises.
SourceAWS 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.
SourceRelated pages
More on Amazon DocumentDB
More on AWS API Gateway
Other head to heads
- Amazon DocumentDB vs CosmosDB
- Amazon DocumentDB vs MongoDB
- Amazon DocumentDB vs Couchbase
- Amazon DocumentDB vs PlanetScale
- Amazon DocumentDB vs BigQuery
- Amazon DocumentDB vs ScyllaDB
- Amazon DocumentDB vs Tinybird
- Amazon DocumentDB vs Cockroach Labs
- Amazon DocumentDB vs Elasticsearch
- Amazon DocumentDB vs Qdrant
- Amazon DocumentDB vs StarRocks
- Amazon DocumentDB vs MariaDB
- Amazon DocumentDB vs Materialize
- Amazon DocumentDB vs Memcached
- Amazon DocumentDB vs Neo4j
- Amazon DocumentDB vs Typesense
- Amazon DocumentDB vs Microsoft SQL Server
- Amazon DocumentDB vs MongoDB Atlas
- Amazon DocumentDB vs Microsoft Azure API Management
- Amazon DocumentDB vs Zuplo
- Amazon DocumentDB vs Kong Gateway
- Amazon DocumentDB vs IBM API Connect
- Amazon DocumentDB vs Tyk
- Amazon DocumentDB vs Gravitee
- Amazon DocumentDB vs Apigee
- Amazon DocumentDB vs Boomi API Management
- Amazon DocumentDB vs Convoy
- Amazon DocumentDB vs Janus Gateway
- Amazon DocumentDB vs Spring Cloud Gateway
- Amazon DocumentDB vs Zeplo
- Amazon DocumentDB vs Basis Theory
- Amazon DocumentDB vs curl
- Amazon DocumentDB vs Flybits
- Amazon DocumentDB vs Moesif
- Amazon DocumentDB vs Neonomics
- Amazon DocumentDB vs Ozone API
- AWS API Gateway vs CosmosDB
- AWS API Gateway vs MongoDB
- AWS API Gateway vs Couchbase
- AWS API Gateway vs PlanetScale
- AWS API Gateway vs BigQuery
- AWS API Gateway vs ScyllaDB
- AWS API Gateway vs Tinybird
- AWS API Gateway vs Cockroach Labs
- AWS API Gateway vs Elasticsearch
- AWS API Gateway vs Qdrant
- AWS API Gateway vs StarRocks
- AWS API Gateway vs MariaDB
- AWS API Gateway vs Materialize
- AWS API Gateway vs Memcached
- AWS API Gateway vs Neo4j
- AWS API Gateway vs Typesense
- AWS API Gateway vs Microsoft SQL Server
- AWS API Gateway vs MongoDB Atlas
- 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 Basis Theory
- AWS API Gateway vs curl
- AWS API Gateway vs Flybits
- AWS API Gateway vs Moesif
- AWS API Gateway vs Neonomics
- AWS API Gateway vs Ozone API
