Databases · head to head
Apache HBase vs Google Cloud Spanner

Apache HBase
Databases
Open source distributed wide-column store modelled on Bigtable, running on Hadoop
- From
- Free
- Free plan
- Yes

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
- Both are free.
- Only Apache HBase lists runs on Hadoop and HDFS; only Google Cloud Spanner lists strong global consistency.
- Where Apache HBase falls short: not relational, so there are no built-in SQL joins.
- Where Google Cloud Spanner falls short: pricing has compute, storage, replication and network components.
How do Apache HBase and Google Cloud Spanner differ?
Apache HBase and Google Cloud Spanner differ on pricing model (Open-source against Usage-based). Only the attributes on which Apache HBase and Google Cloud Spanner actually diverge.
| Attribute | Apache HBase | Google Cloud Spanner |
|---|---|---|
| Pricing model | Open-source | Usage-based |
Identical on both: starting price (Free), free tier (Yes), platforms (Web), category (Databases).
Which features does each one have?
They share no listed features; 7 appear only for Apache HBase 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 Apache HBase
- Strictly consistent real-time reads and writes
- Automatic sharding and failover
- Runs on Hadoop and HDFS
- Java client
- REST and Thrift gateways
- Server-side filters
- Bloom filters
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?
Apache HBase is most often brought in for time-series and metrics storage; Google Cloud Spanner for global transactional systems. The jobs each tool is most often brought in to do.
Apache HBase
- Time-series and metrics storagenot Google Cloud Spanner
- IoT telemetrynot Google Cloud Spanner
- Message and audit logsnot Google Cloud Spanner
- Genomics datanot Google Cloud Spanner
- Ad tech personalisationnot Google Cloud Spanner
Google Cloud Spanner
- Global transactional systemsnot Apache HBase
- Mission-critical apps needing 99.999% availabilitynot Apache HBase
- Applications needing relational plus graph and vectornot Apache HBase
- Real-time analytics on operational datanot Apache HBase
- Scaling beyond a single database servernot Apache HBase
Where do Apache HBase and Google Cloud Spanner fall short?
Apache HBase's most cited limit: not relational, so there are no built-in SQL joins. 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.
Apache HBase
- Not relational, so there are no built-in SQL joins
- Depends on Hadoop and HDFS, adding operational work
- Self-hosted; cluster setup is covered only in the reference guide
- Several release lines are documented in parallel
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 Apache HBase and Google Cloud Spanner cost?
Apache HBase is free to use; Google Cloud Spanner is free to use. Plan by plan below, from each vendor's own pricing page.
Apache HBase
FreeNo published plan breakdown. See the Apache HBase review.
Google Cloud Spanner
FreeNo published plan breakdown. See the Google Cloud Spanner review.
Which should you pick?
Choose Apache HBase if
- You need strictly consistent real-time reads and writes.
- You want to start without paying.
- You also want automatic sharding and failover.
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 Apache HBase or Google Cloud Spanner better?
- It depends on the job. Apache HBase fits time-series and metrics storage; Google Cloud Spanner fits global transactional systems. Apache HBase starts at Free and Google Cloud Spanner at Free.
- Which is cheaper, Apache HBase or Google Cloud Spanner?
- Apache HBase starts at Free and Google Cloud Spanner at Free.
- Does Apache HBase or Google Cloud Spanner run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use Apache HBase for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Apache HBase best used for?
- Apache HBase is most often used for time-series and metrics storage, iot telemetry, message and audit logs, genomics data. Of those, time-series and metrics storage and iot telemetry are not what Google Cloud Spanner is typically brought in for.
- What can Apache HBase do that Google Cloud Spanner cannot?
- Apache HBase covers Strictly consistent real-time reads and writes, Automatic sharding and failover, Runs on Hadoop and HDFS, Java client. Google Cloud Spanner covers Strong global consistency, Automatic sharding, Single, dual and multi-region configurations, Spanner Graph.
Answered from the vendors’ own pages
Apache HBase: What is HBase modelled on?
The site describes it as an open-source distributed big data store modelled after Google Bigtable. It provides random, real-time read and write access to very large datasets.
SourceGoogle Cloud Spanner: Is there a free trial?
Yes, a free trial instance lasts 90 days with up to 10 GiB of data.
SourceApache HBase: Does HBase need Hadoop?
It runs on Hadoop and HDFS, per the site. Cluster setup is covered in the Reference Guide.
SourceGoogle Cloud Spanner: What availability does Spanner offer?
Up to 99.999% availability, depending on configuration.
SourceApache HBase: What clients does it support?
The site lists a Java client plus REST and Thrift gateways. Server-side filters and Bloom filters are also described.
SourceGoogle Cloud Spanner: How is Spanner billed?
By hourly compute by edition, plus storage and replication, with committed use discounts of one and three years.
SourceGoogle Cloud Spanner: Can Spanner run outside Google Cloud?
Spanner Omni is a downloadable version for on-premises, other clouds or a laptop.
SourceRelated pages
More on Apache HBase
More on Google Cloud Spanner
Other head to heads
- Apache HBase vs ScyllaDB
- Apache HBase vs MongoDB
- Apache HBase vs Apache Hadoop
- Apache HBase vs Firebase Realtime Database
- Apache HBase vs DynamoDB
- Apache HBase vs Elasticsearch
- Apache HBase vs Couchbase
- Apache HBase vs ArangoDB
- Apache HBase vs Neo4j
- Apache HBase vs DataGrip
- Apache HBase vs Dgraph
- Apache HBase vs RavenDB
- Apache HBase vs Timeplus
- Apache HBase vs Vitess
- Apache HBase vs Canary Labs
- Apache HBase vs Convex
- Apache HBase vs DataStax
- Apache HBase vs dbt
- Apache HBase vs Azure Cosmos DB
- Apache HBase vs CockroachDB
- Apache HBase vs Amazon Aurora
- Apache HBase vs TiDB
- Apache HBase vs YugabyteDB
- Apache HBase vs Aerospike
- Apache HBase vs PostgreSQL
- Apache HBase vs Cassandra
- Apache HBase vs MariaDB
- Apache HBase vs Milvus
- Apache HBase vs Dremio
- Apache HBase vs EMQX
- Apache HBase vs Firebolt
- Apache HBase vs Azure SQL
- Apache HBase vs CouchDB
- Google Cloud Spanner vs ScyllaDB
- Google Cloud Spanner vs MongoDB
- Google Cloud Spanner vs Apache Hadoop
- Google Cloud Spanner vs Firebase Realtime Database
- Google Cloud Spanner vs DynamoDB
- Google Cloud Spanner vs Elasticsearch
- Google Cloud Spanner vs Couchbase
- Google Cloud Spanner vs ArangoDB
- Google Cloud Spanner vs Neo4j
- Google Cloud Spanner vs DataGrip
- Google Cloud Spanner vs Dgraph
- Google Cloud Spanner vs RavenDB
- Google Cloud Spanner vs Timeplus
- Google Cloud Spanner vs Vitess
- Google Cloud Spanner vs Canary Labs
- Google Cloud Spanner vs Convex
- Google Cloud Spanner vs DataStax
- Google Cloud Spanner vs dbt
- Google Cloud Spanner vs Azure Cosmos DB
- Google Cloud Spanner vs CockroachDB
- Google Cloud Spanner vs Amazon Aurora
- Google Cloud Spanner vs TiDB
- Google Cloud Spanner vs YugabyteDB
- Google Cloud Spanner vs Aerospike
- Google Cloud Spanner vs PostgreSQL
- Google Cloud Spanner vs Cassandra
- Google Cloud Spanner vs MariaDB
- Google Cloud Spanner vs Milvus
- Google Cloud Spanner vs Dremio
- Google Cloud Spanner vs EMQX
- Google Cloud Spanner vs Firebolt
- Google Cloud Spanner vs Azure SQL
- Google Cloud Spanner vs CouchDB
