Softwr

Databases · head to head

Amazon DocumentDB vs Google Cloud Spanner

Amazon DocumentDB logo

Amazon DocumentDB

Databases

Managed MongoDB-compatible document database service on AWS

From
On request
Free plan
No
Google Cloud Spanner logo

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

  • Amazon DocumentDB is a managed document database on AWS.
  • Google Cloud Spanner is free; Amazon DocumentDB prices on request.
  • Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only Google Cloud Spanner lists automatic sharding.
  • Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
  • Where Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.
  • Prices and features on this page were last checked on 26 November 2026.

How do Amazon DocumentDB and Google Cloud Spanner differ?

Amazon DocumentDB and Google Cloud Spanner differ on starting price (On request against Free) and free tier (No against Yes). Only the attributes on which Amazon DocumentDB and Google Cloud Spanner actually diverge.

Attributes where Amazon DocumentDB and Google Cloud Spanner differ
AttributeAmazon DocumentDBGoogle Cloud Spanner
Starting priceOn requestFree
Free tierNoYes

Identical on both: pricing model (Usage-based), platforms (Web), category (Databases).

Which features does each one have?

They share no listed features; 8 appear only for Amazon DocumentDB 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 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 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?

Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; Google Cloud Spanner for global transactional systems. The jobs each tool is most often brought in to do.

Amazon DocumentDB

  • Migrating MongoDB workloads to AWSnot Google Cloud Spanner
  • Content and catalogue document storesnot Google Cloud Spanner
  • Serverless document databases for variable loadnot Google Cloud Spanner
  • Multi region read replicas for disaster recoverynot Google Cloud Spanner

Google Cloud Spanner

  • Global transactional systemsnot Amazon DocumentDB
  • Mission-critical apps needing 99.999% availabilitynot Amazon DocumentDB
  • Applications needing relational plus graph and vectornot Amazon DocumentDB
  • Real-time analytics on operational datanot Amazon DocumentDB
  • Scaling beyond a single database servernot Amazon DocumentDB

Where do Amazon DocumentDB and Google Cloud Spanner fall short?

Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Google Cloud Spanner's: pricing has compute, storage, replication and network components. 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

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 Amazon DocumentDB and Google Cloud Spanner cost?

Google Cloud Spanner is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon DocumentDB

On request

No published plan breakdown. See the Amazon DocumentDB review.

Google Cloud Spanner

Free

No published plan breakdown. See the Google Cloud Spanner review.

Which should you pick?

Choose Amazon DocumentDB if

  • You need mongodb driver and tool compatibility.
  • You also want managed patching, backups and monitoring.

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 Amazon DocumentDB or Google Cloud Spanner better?
Neither clearly leads. Amazon DocumentDB starts at On request and Google Cloud Spanner at Free, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, Amazon DocumentDB or Google Cloud Spanner?
Google Cloud Spanner has a free tier; the other does not. Paid plans start at On request for Amazon DocumentDB and Free for Google Cloud Spanner.
Does Amazon DocumentDB 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. 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 Google Cloud Spanner is typically brought in for.
What can Amazon DocumentDB do that Google Cloud Spanner cannot?
Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph.

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.

Source
Google Cloud Spanner: Is there a free trial?

Yes, a free trial instance lasts 90 days with up to 10 GiB of data.

Source
Amazon 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.

Source
Google Cloud Spanner: What availability does Spanner offer?

Up to 99.999% availability, depending on configuration.

Source
Amazon 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).

Source
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.

Source
Amazon DocumentDB: Can it run outside AWS?

No. Wikipedia says it runs only on AWS and cannot span cloud providers or run on premises.

Source
Google Cloud Spanner: Can Spanner run outside Google Cloud?

Spanner Omni is a downloadable version for on-premises, other clouds or a laptop.

Source
Share

Related pages

Other head to heads