Softwr

Databases · head to head

Google Cloud Spanner vs Google Compute Engine

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
Google Compute Engine logo

Google Compute Engine

Databases

Google Cloud virtual machines billed per vCPU and per GB of memory

From
On request
Free plan
No

The short version

  • Google Cloud Spanner is free; Google Compute Engine prices on request.
  • Only Google Cloud Spanner lists strong global consistency; only Google Compute Engine lists machine families.
  • Where Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.
  • Where Google Compute Engine falls short: you manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove.

How do Google Cloud Spanner and Google Compute Engine differ?

Google Cloud Spanner and Google Compute Engine differ on starting price (Free against On request), pricing model and free tier (Yes against No). Only the attributes on which Google Cloud Spanner and Google Compute Engine actually diverge.

Attributes where Google Cloud Spanner and Google Compute Engine differ
AttributeGoogle Cloud SpannerGoogle Compute Engine
Starting priceFreeOn request
Pricing modelUsage-basedPer vCPU and per GB of memory per hour
Free tierYesNo
PlatformsWebWeb, API

Not yet recorded: category for Google Compute Engine.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Spanner and 5 only for Google Compute Engine. 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 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

Only in Google Compute Engine

  • Machine families
  • Custom machine types
  • Sustained use discounts
  • Committed use discounts
  • Free e2-micro

What is each one used for?

Google Cloud Spanner is most often brought in for global transactional systems; Google Compute Engine for lift-and-shift of virtual machine workloads to Google Cloud. The jobs each tool is most often brought in to do.

Google Cloud Spanner

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

Google Compute Engine

  • Lift-and-shift of virtual machine workloads to Google Cloudnot Google Cloud Spanner
  • GPU and high performance computing jobsnot Google Cloud Spanner
  • Self-managed databases or legacy servers needing OS controlnot Google Cloud Spanner
  • Cost-optimised batch work on spot capacitynot Google Cloud Spanner

Where do Google Cloud Spanner and Google Compute Engine fall short?

Google Cloud Spanner's most cited limit: pricing has compute, storage, replication and network components. Google Compute Engine's: machine type choice is wide, and picking the wrong family wastes money until you resize. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Google Compute Engine

  • You manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove
  • Bills combine vCPU, memory, disks, network egress and licences, which makes forecasting hard without the pricing calculator
  • Machine type choice is wide, and picking the wrong family wastes money until you resize
  • Sustained use discounts do not stack with committed use discounts, so savings depend on getting commitments right
  • Network egress charges can exceed compute cost for data-heavy applications

How much do Google Cloud Spanner and Google Compute Engine cost?

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

Google Cloud Spanner

Free

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

Google Compute Engine

On request
  • On demandOn request
    • vCPU and memory billed separately
    • Sustained use discounts up to 30%
    • Committed use discounts available

Which should you pick?

Choose Google Cloud Spanner if

  • You need strong global consistency.
  • You want to start without paying.
  • You also want automatic sharding.

Choose Google Compute Engine if

  • You need machine families.
  • You work on Web, API.
  • You also want custom machine types.

Questions people ask

Is Google Cloud Spanner or Google Compute Engine better?
It depends on the job. Google Cloud Spanner fits global transactional systems; Google Compute Engine fits lift-and-shift of virtual machine workloads to Google Cloud. Google Cloud Spanner starts at Free and Google Compute Engine at On request.
Which is cheaper, Google Cloud Spanner or Google Compute Engine?
Google Cloud Spanner has a free tier; the other does not. Paid plans start at Free for Google Cloud Spanner and On request for Google Compute Engine.
Does Google Cloud Spanner or Google Compute Engine run on more platforms?
Google Cloud Spanner runs on Web. Google Compute Engine runs on Web, API.
Can I use Google Cloud Spanner for free?
Yes. Google Cloud Spanner has a free tier, so you can try it without paying. Google Compute Engine starts at On request.
What is Google Cloud Spanner best used for?
Google Cloud Spanner is most often used for global transactional systems, mission-critical apps needing 99.999% availability, applications needing relational plus graph and vector, real-time analytics on operational data. Of those, global transactional systems and mission-critical apps needing 99.999% availability are not what Google Compute Engine is typically brought in for.
What can Google Cloud Spanner do that Google Compute Engine cannot?
Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph. Google Compute Engine covers Machine families, Custom machine types, Sustained use discounts, Committed use discounts.

Answered from the vendors’ own pages

Google Cloud Spanner: Is there a free trial?

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

Source
Google Compute Engine: How is Compute Engine billed?

Per vCPU and per GB of memory per hour, plus disks and network.

Google Cloud Spanner: What availability does Spanner offer?

Up to 99.999% availability, depending on configuration.

Source
Google Compute Engine: Is there a free VM?

Yes, Google Cloud offers a free e2-micro instance under its free programme.

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
Google Compute Engine: What discounts exist?

Sustained use discounts of up to 30% and committed use discounts.

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