Softwr

Databases · head to head

Amazon MSK vs Google Cloud Spanner

Amazon MSK logo

Amazon MSK

Databases

Managed Apache Kafka on AWS with Standard and Express broker types

From
$0.204/hour
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

  • Google Cloud Spanner is free; Amazon MSK starts at $0.204/mo.
  • Only Amazon MSK lists standard brokers; only Google Cloud Spanner lists strong global consistency.
  • Where Amazon MSK falls short: brokers are billed whether or not traffic flows, so a quiet development cluster costs hundreds of dollars a month at the AWS example rate.
  • Where Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.

How do Amazon MSK and Google Cloud Spanner differ?

Amazon MSK and Google Cloud Spanner differ on starting price ($0.204/hour against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon MSK and Google Cloud Spanner actually diverge.

Attributes where Amazon MSK and Google Cloud Spanner differ
AttributeAmazon MSKGoogle Cloud Spanner
Starting price$0.204/hourFree
Pricing modelPer broker hour plus per GB-month storageUsage-based
Free tierNoYes
PlatformsWeb, LinuxWeb

Not yet recorded: category for Amazon MSK.

Which features does each one have?

They share no listed features; 6 appear only for Amazon MSK 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 MSK

  • Standard brokers
  • Express brokers
  • MSK Connect
  • MSK Replicator
  • IAM access control
  • Tiered storage

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 MSK is most often brought in for migrating a self-managed Kafka cluster without rewriting clients; Google Cloud Spanner for global transactional systems. The jobs each tool is most often brought in to do.

Amazon MSK

  • Event streaming between microservices where producers and consumers already speak Kafkanot Google Cloud Spanner
  • Feeding Amazon S3, OpenSearch or Redshift from application events with MSK Connectnot Google Cloud Spanner
  • Migrating a self-managed Kafka cluster without rewriting clientsnot Google Cloud Spanner
  • Cross-Region replication of topics for disaster recoverynot Google Cloud Spanner

Google Cloud Spanner

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

Where do Amazon MSK and Google Cloud Spanner fall short?

Amazon MSK's most cited limit: Cross-AZ replication and client traffic generate data transfer charges that are not in the broker price. 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 MSK

  • You still choose broker counts, instance sizes and partition layout, so capacity planning and rebalancing remain your responsibility on Standard brokers
  • Brokers are billed whether or not traffic flows, so a quiet development cluster costs hundreds of dollars a month at the AWS example rate
  • The ecosystem around schema governance, managed connectors and stream processing is thinner than Confluent Cloud, so more components must be assembled
  • Cross-AZ replication and client traffic generate data transfer charges that are not in the broker price
  • Kafka version upgrades and client compatibility still require planning, and AWS lags upstream releases

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

Amazon MSK starts at $0.204/mo; Google Cloud Spanner is free to use. Plan by plan below, from each vendor's own pricing page.

Amazon MSK

$0.204/hour
  • Standard broker$0.204/hour
    • kafka.m7g.large $0.204 per hour, kafka.m5.large $0.21
    • Storage $0.10 per GB-month
  • Express broker$0.408/hour
    • express.m7g.large $0.408 per hour, express.m8g.large $0.3468
    • $0.01 per GB of data written
    • Low-cost storage tier retrieval $0.0015 per GB

Google Cloud Spanner

Free

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

Which should you pick?

Choose Amazon MSK if

  • You need standard brokers.
  • You work on Web, Linux.
  • You also want express brokers.

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 MSK or Google Cloud Spanner better?
It depends on the job. Amazon MSK fits event streaming between microservices where producers and consumers already speak Kafka; Google Cloud Spanner fits global transactional systems. Amazon MSK starts at $0.204/hour and Google Cloud Spanner at Free.
Which is cheaper, Amazon MSK or Google Cloud Spanner?
Google Cloud Spanner has a free tier; the other does not. Paid plans start at $0.204/hour for Amazon MSK and Free for Google Cloud Spanner.
Does Amazon MSK or Google Cloud Spanner run on more platforms?
Amazon MSK runs on Web, Linux. Google Cloud Spanner runs on Web.
Can I use Google Cloud Spanner for free?
Yes. Google Cloud Spanner has a free tier, so you can try it without paying. Amazon MSK starts at $0.204/hour.
What is Amazon MSK best used for?
Amazon MSK is most often used for event streaming between microservices where producers and consumers already speak kafka, feeding amazon s3, opensearch or redshift from application events with msk connect, migrating a self-managed kafka cluster without rewriting clients, cross-region replication of topics for disaster recovery. Of those, event streaming between microservices where producers and consumers already speak kafka and feeding amazon s3, opensearch or redshift from application events with msk connect are not what Google Cloud Spanner is typically brought in for.
What can Amazon MSK do that Google Cloud Spanner cannot?
Amazon MSK covers Standard brokers, Express brokers, MSK Connect, MSK Replicator. Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph.

Answered from the vendors’ own pages

Amazon MSK: How much does Amazon MSK cost?

Standard kafka.m7g.large brokers are $0.204 per hour and express.m7g.large brokers $0.408 per hour, plus storage at $0.10 per GB-month, per the AWS page.

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 MSK: What is the difference between Standard and Express brokers?

Express brokers are designed for higher throughput per broker and quicker scaling; Standard brokers give more control over configuration. Both are billed per broker hour.

Google Cloud Spanner: What availability does Spanner offer?

Up to 99.999% availability, depending on configuration.

Source
Amazon MSK: Is MSK compatible with Apache Kafka clients?

Yes. It runs Apache Kafka, so existing producers, consumers and Kafka Connect connectors work.

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