Softwr

Databases · head to head

Amazon DocumentDB vs Amazon ECS

Amazon DocumentDB logo

Amazon DocumentDB

Databases

Managed MongoDB-compatible document database service on AWS

From
On request
Free plan
No
Amazon ECS logo

Amazon ECS

Databases

AWS managed container orchestration, free to use, billed for Fargate or EC2 compute

From
On request
Free plan
No

The short version

  • Amazon DocumentDB is a managed document database on AWS; Amazon ECS is a fully managed container orchestration service on AWS.
  • Only Amazon DocumentDB lists MongoDB driver and tool compatibility; only Amazon ECS lists EC2 launch type.
  • Where Amazon DocumentDB falls short: runs only on AWS; it cannot run on premises or across cloud providers.
  • Where Amazon ECS falls short: runs only on AWS, with no portability to other clouds.

How do Amazon DocumentDB and Amazon ECS differ?

Only the attributes on which Amazon DocumentDB and Amazon ECS actually diverge.

On every field we record, Amazon DocumentDB and Amazon ECS match. The differences are in what each one covers, below.

Identical on both: starting price (On request), pricing model (Usage-based), free tier (No), platforms (Web).

Not yet recorded: category for Amazon ECS.

Which features does each one have?

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

  • Fargate serverless containers
  • EC2 launch type
  • ECS Anywhere for on-premises and edge
  • ECS Managed Instances
  • IAM-based access control
  • Automated patching
  • Encryption in transit and at rest
  • Spot capacity support

What is each one used for?

Amazon DocumentDB is most often brought in for migrating MongoDB workloads to AWS; Amazon ECS for running containerised web services on AWS. The jobs each tool is most often brought in to do.

Amazon DocumentDB

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

Amazon ECS

  • Running containerised web services on AWSnot Amazon DocumentDB
  • Batch jobs on Spot capacitynot Amazon DocumentDB
  • Serverless containers without managing serversnot Amazon DocumentDB
  • Hybrid workloads using ECS Anywherenot Amazon DocumentDB

Where do Amazon DocumentDB and Amazon ECS fall short?

Amazon DocumentDB's most cited limit: runs only on AWS; it cannot run on premises or across cloud providers. Amazon ECS's: runs only on AWS, with no portability to other clouds. 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

Amazon ECS

  • Runs only on AWS, with no portability to other clouds
  • Task definitions and APIs are AWS-specific, unlike Kubernetes
  • Costs combine ECS-adjacent services such as EC2, load balancers and IPv4
  • Smaller ecosystem of third-party tooling than Kubernetes

How much do Amazon DocumentDB and Amazon ECS cost?

Amazon DocumentDB

On request

No published plan breakdown. See the Amazon DocumentDB review.

Amazon ECS

On request

No published plan breakdown. See the Amazon ECS 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 Amazon ECS if

  • You need fargate serverless containers.
  • You also want ec2 launch type.

Questions people ask

Is Amazon DocumentDB or Amazon ECS better?
It depends on the job. Amazon DocumentDB fits migrating MongoDB workloads to AWS; Amazon ECS fits running containerised web services on AWS. Amazon DocumentDB starts at On request and Amazon ECS at On request.
Which is cheaper, Amazon DocumentDB or Amazon ECS?
Amazon DocumentDB starts at On request and Amazon ECS at On request.
Does Amazon DocumentDB or Amazon ECS run on more platforms?
Both run on Web, so platform support will not decide this one for you.
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 Amazon ECS is typically brought in for.
What can Amazon DocumentDB do that Amazon ECS cannot?
Amazon DocumentDB covers MongoDB driver and tool compatibility, Managed patching, backups and monitoring, Serverless capacity scaling, Elastic clusters. Amazon ECS covers Fargate serverless containers, EC2 launch type, ECS Anywhere for on-premises and edge, ECS Managed Instances.

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
Amazon ECS: Does ECS cost extra?

No. There is no additional charge for Amazon ECS orchestration; you pay for the compute and resources your containers use.

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
Amazon ECS: Can ECS run outside AWS?

ECS Anywhere runs containers on registered on-premises instances at $0.01025 per instance per hour.

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
Amazon ECS: What compute options does ECS offer?

AWS Fargate, Amazon EC2 and ECS Anywhere, plus ECS Managed Instances.

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
Share

Related pages

Other head to heads