Softwr

Databases · head to head

Azure Cosmos DB vs Google Cloud Run

Azure Cosmos DB logo

Azure Cosmos DB

Databases

Globally distributed, multi-model database service from Azure

From
Free
Free plan
Yes
Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No

The short version

  • Azure Cosmos DB is free; Google Cloud Run prices on request.
  • Only Azure Cosmos DB lists global Distribution; only Google Cloud Run lists deploy any container image.
  • 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.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.

How do Azure Cosmos DB and Google Cloud Run differ?

Azure Cosmos DB and Google Cloud Run differ on starting price (Free against On request), free tier (Yes against No) and platforms (Web, Azure against Web). Only the attributes on which Azure Cosmos DB and Google Cloud Run actually diverge.

Attributes where Azure Cosmos DB and Google Cloud Run differ
AttributeAzure Cosmos DBGoogle Cloud Run
Starting priceFreeOn request
Free tierYesNo
PlatformsWeb, AzureWeb
CategoryDatabasesCloud

Identical on both: pricing model (Usage-based).

Not yet recorded: founded for Google Cloud Run.

Which features does each one have?

They share no listed features; 14 appear only for Azure Cosmos DB and 9 only for Google Cloud Run. 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 Azure Cosmos DB

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

Only in Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

What is each one used for?

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

Azure Cosmos DB

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

Google Cloud Run

  • Hosting web APIs and microservicesnot Azure Cosmos DB
  • Scheduled batch jobsnot Azure Cosmos DB
  • Queue consumers on worker poolsnot Azure Cosmos DB
  • Deploying containers without managing clustersnot Azure Cosmos DB
  • Event-driven backends with Pub/Subnot Azure Cosmos DB

Where do Azure Cosmos DB and Google Cloud Run fall short?

Azure Cosmos DB's most cited limit: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used. Google Cloud Run's: runs only on Google Cloud, so there is no self-hosted option. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

How much do Azure Cosmos DB and Google Cloud Run cost?

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

Azure Cosmos DB

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

Google Cloud Run

On request

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

Which should you pick?

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.

Choose Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Questions people ask

Is Azure Cosmos DB or Google Cloud Run better?
It depends on the job. Azure Cosmos DB fits running a globally distributed multi model database on Azure; Google Cloud Run fits hosting web APIs and microservices. Azure Cosmos DB starts at Free and Google Cloud Run at On request.
Which is cheaper, Azure Cosmos DB or Google Cloud Run?
Azure Cosmos DB has a free tier; the other does not. Paid plans start at Free for Azure Cosmos DB and On request for Google Cloud Run.
Does Azure Cosmos DB or Google Cloud Run run on more platforms?
Azure Cosmos DB runs on Web, Azure. Google Cloud Run runs on Web.
Can I use Azure Cosmos DB for free?
Yes. Azure Cosmos DB has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
What is Azure Cosmos DB best used for?
Azure Cosmos DB is most often used for running a globally distributed multi model database on azure, serving low latency reads and writes from multiple azure regions, storing document, key value and graph data behind a managed service. Of those, running a globally distributed multi model database on azure and serving low latency reads and writes from multiple azure regions are not what Google Cloud Run is typically brought in for.
What can Azure Cosmos DB do that Google Cloud Run cannot?
Azure Cosmos DB covers Global Distribution, Multi-model APIs, Elastic Scaling, Five Consistency Levels. Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks.

Answered from the vendors’ own pages

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
Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

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
Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

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
Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

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