Softwr

Cloud · head to head

Amazon EC2 vs Azure Cosmos DB

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

From
Free
Free plan
Yes
Azure Cosmos DB logo

Azure Cosmos DB

Databases

Globally distributed, multi-model database service from Azure

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Amazon EC2 lists over 1,000 instance types; only Azure Cosmos DB lists global Distribution.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • Where Azure Cosmos DB falls short: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used.

How do Amazon EC2 and Azure Cosmos DB differ?

Amazon EC2 and Azure Cosmos DB differ on platforms and category (Cloud against Databases). Only the attributes on which Amazon EC2 and Azure Cosmos DB actually diverge.

Attributes where Amazon EC2 and Azure Cosmos DB differ
AttributeAmazon EC2Azure Cosmos DB
PlatformsWeb, Linux, Windows, macOSWeb, Azure
CategoryCloudDatabases

Identical on both: starting price (Free), pricing model (Usage-based), free tier (Yes).

Not yet recorded: founded for Amazon EC2.

Which features does each one have?

They share no listed features; 7 appear only for Amazon EC2 and 14 only for Azure Cosmos DB. 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 EC2

  • Over 1,000 instance types
  • Intel, AMD and Arm (Graviton) processors
  • Per-second billing
  • Spot Instances and Savings Plans
  • Dedicated Hosts
  • EC2 Mac instances
  • Nitro System isolation

Only in Azure Cosmos DB

  • Global Distribution
  • Multi-model APIs
  • Elastic Scaling
  • Five Consistency Levels
  • SLA-backed Latency
  • Automatic Indexing
  • Serverless
  • Azure Functions

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs; Azure Cosmos DB for running a globally distributed multi model database on Azure. The jobs each tool is most often brought in to do.

Amazon EC2

  • Hosting web applications and APIsnot Azure Cosmos DB
  • Running GPU and machine learning workloadsnot Azure Cosmos DB
  • Building and signing macOS appsnot Azure Cosmos DB
  • Bursting capacity with Spot Instancesnot Azure Cosmos DB

Azure Cosmos DB

  • Running a globally distributed multi model database on Azurenot Amazon EC2
  • Serving low latency reads and writes from multiple Azure regionsnot Amazon EC2
  • Storing document, key value and graph data behind a managed servicenot Amazon EC2

Where do Amazon EC2 and Azure Cosmos DB fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. Azure Cosmos DB's: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Amazon EC2

  • Cost forecasting is complex across purchase options and instance types
  • Spot instances carry no SLA and can be reclaimed on two minutes' notice
  • Instance-store data is lost when an instance stops or terminates
  • You manage OS patching, scaling and security configuration

Azure Cosmos DB

  • Autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used
  • Provisioned throughput is charged in every region the account is replicated to, so multi region accounts multiply the RU bill
  • Storage charges cover data, indexes and backups in each replicated region
  • Egress out of Azure and between regions is charged, though ingress is free
  • The free allowance is one account per Azure subscription, limited to 1,000 RU/s and 25 GB
  • RU/s rates vary by region and are only shown through the pricing calculator rather than a flat published rate

How much do Amazon EC2 and Azure Cosmos DB cost?

Amazon EC2 is free to use; Azure Cosmos DB is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 review.

Azure Cosmos DB

Free
  • Free TierFree
    • 1000 RU/s
    • 25GB storage
    • First 12 months
  • ServerlessFree
    • Pay per request
    • Auto-scaling
    • Event-driven workloads

Which should you pick?

Choose Amazon EC2 if

  • You need over 1,000 instance types.
  • You want to start without paying.
  • You work on Web, Linux, Windows, macOS.
  • You also want intel, amd and arm (graviton) processors.

Choose Azure Cosmos DB if

  • You need global distribution.
  • You want to start without paying.
  • You work on Web, Azure.
  • You also want multi-model apis.

Questions people ask

Is Amazon EC2 or Azure Cosmos DB better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; Azure Cosmos DB fits running a globally distributed multi model database on Azure. Amazon EC2 starts at Free and Azure Cosmos DB at Free.
Which is cheaper, Amazon EC2 or Azure Cosmos DB?
Amazon EC2 starts at Free and Azure Cosmos DB at Free.
Does Amazon EC2 or Azure Cosmos DB run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. Azure Cosmos DB runs on Web, Azure.
Can I use Amazon EC2 for free?
Both have a free tier, so you can try either at no cost before committing.
What is Amazon EC2 best used for?
Amazon EC2 is most often used for hosting web applications and apis, running gpu and machine learning workloads, building and signing macos apps, bursting capacity with spot instances. Of those, hosting web applications and apis and running gpu and machine learning workloads are not what Azure Cosmos DB is typically brought in for.
What can Amazon EC2 do that Azure Cosmos DB cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. Azure Cosmos DB covers Global Distribution, Multi-model APIs, Elastic Scaling, Five Consistency Levels.

Answered from the vendors’ own pages

Amazon EC2: How is Amazon EC2 billed?

Usage is billed in one-second increments with a minimum charge of 60 seconds, across all purchase options and Regions.

Source
Azure Cosmos DB: Is there a free tier for Azure Cosmos DB?

Yes, Cosmos DB offers a free tier with 1,000 RU/s of throughput and 25 GB of storage per month for the lifetime of the account, available to new accounts.

Source
Amazon EC2: When did EC2 launch?

A limited public beta started on 25 August 2006, and the beta label was dropped on 23 October 2008 with the addition of an SLA.

Source
Azure Cosmos DB: How is Cosmos DB priced after the free tier?

Cosmos DB uses three billing models: provisioned throughput billed per request unit per second, vCore pricing for certain APIs, or serverless consumption pricing where you pay only for requests processed. Reserved capacity offers 20% discount for one year or 30% for three years.

Source
Amazon EC2: How much can Spot Instances save?

AWS says Spot Instances save up to 90 percent versus On-Demand, and Savings Plans up to 72 percent. Wikipedia notes Spot can be reclaimed with two minutes' notice.

Source
Azure Cosmos DB: Can I change my pricing model after choosing one?

No. Once you select a compute pricing model and API, they cannot be changed. This choice is permanent for that database.

Source
Azure Cosmos DB: Is there a trial period for Cosmos DB beyond the free tier?

Azure offers a 30-day free trial account for all Azure services. Additionally, Azure AI customers may be eligible for a 90-day free Cosmos DB subscription through the Azure AI Advantage program.

Source
Share

Related pages

Other head to heads