Baidu Tera

discontinued

by Baidu · since 2014 · also known as Tera

Baidu's open-source Bigtable clone in C++, used for web indexing; no development since 2019.

wide-columnkey-valuedatabase engineopen source (permissive)legacy

discontinued. No releases or commits on master since v2.14 (January 2019). Apache HBase or a managed Bigtable service are maintained equivalents.

Overview

Tera is a Bigtable-style distributed wide-column store that Baidu built for its search infrastructure (web indexing, WebPage DB, LinkBase DB) and open-sourced in 2014. Tables are sparse, sorted maps of row key, column family plus qualifier and timestamp to bytes, split into tablets served by tablet servers that use an enhanced LevelDB engine, with a master for load balancing and a distributed lock service (ZooKeeper or Baidu's Nexus) for coordination; logs and data live on BFS, HDFS or a POSIX file system. It offers MVCC, strong consistency, online schema changes, snapshots, locality groups and tables pinned to RAM disk, SSD or disk, with C++, Java, Python and HTTP SDKs. The last release, v2.14, came out in January 2019 and the project has been dormant since.

Strengths & trade-offs

Strengths

  • +Bigtable data model with automatic tablet split, merge and load balancing
  • +Strong consistency and MVCC with snapshot support
  • +Per-table storage tiers (RAM disk, SSD, disk) for latency-sensitive tables
  • +Proven on Baidu's web-scale indexing workloads

Trade-offs

  • −Dormant since 2019 with no community maintenance
  • −Depends on Baidu-specific components (BFS, Nexus, sofa-pbrpc) or extra setup for HDFS/ZooKeeper
  • −Documentation partly only in Chinese
  • −No SQL layer or secondary indexes

Great for

  • +Studying a production Bigtable implementation in C++
  • +Legacy deployments built on Tera

Think twice for

  • −New wide-column deployments (prefer HBase, Bigtable or ScyllaDB)
  • −Teams needing SQL or secondary indexes

Capabilities

Native or official first-party support · 4 of 25 tracked

✓Durable persistence
✓Compression
✓Time travel
✓Online schema changes
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Encryption at rest
–Role-based access
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Massive · Multi-PB
Horizontal scaling
Native
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Flexible
Architecture
Distributed, Shared storage
Query languages
Key/range scan API

Designed for petabytes across thousands of commodity servers inside Baidu; requires a distributed file system and lock service.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsC++ SDK, Java SDK, Python SDK, HTTP REST
client languagesC++, Java, Python

Alternatives to Baidu Tera

Compare all→
Apache HBaseWide-Column26.6

Hadoop's Bigtable clone: strongly consistent wide-column tables on top of HDFS.

baidu-tera vs apache-hbase →
Google Cloud BigtableWide-Column33.3

Google's managed wide-column store, the original Bigtable, with HBase API and SQL access.

baidu-tera vs google-cloud-bigtable →
ScyllaDBWide-Column45.9

C++ rewrite of Cassandra with shard-per-core design; also speaks the DynamoDB API.

baidu-tera vs scylladb →
Apache CassandraWide-Column55.9

Masterless wide-column database built for always-on writes across data centers.

baidu-tera vs apache-cassandra →
TiKVKey-Value20.8

CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.

baidu-tera vs tikv →
GT.MHierarchical8.1

FIS's high-throughput M (MUMPS) database and compiler, behind major core-banking systems.

baidu-tera vs gt-m →

Baidu Tera FAQ

What is Baidu Tera?

Baidu Tera is a wide-column database by Baidu, first released in 2014. Tera is a Bigtable-style distributed wide-column store that Baidu built for its search infrastructure (web indexing, WebPage DB, LinkBase DB) and open-sourced in 2014. Tables are sparse, sorted maps of row key, column family plus qualifier and timestamp to bytes, split into tablets served by tablet servers that use an enhanced LevelDB engine, with a master for load balancing and a distributed lock service (ZooKeeper or Baidu's Nexus) for coordination; logs and data live on BFS, HDFS or a POSIX file system. It offers MVCC, strong consistency, online schema changes, snapshots, locality groups and tables pinned to RAM disk, SSD or disk, with C++, Java, Python and HTTP SDKs. The last release, v2.14, came out in January 2019 and the project has been dormant since.

Is Baidu Tera open source?

Yes. Baidu Tera is open source. License: BSD 3-Clause.

Does Baidu Tera support ACID transactions?

Partly. Baidu Tera offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does Baidu Tera scale horizontally?

Baidu Tera scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB).

How can I run Baidu Tera?

You can self-host it.

What is Baidu Tera best for?

Baidu Tera is a strong fit for studying a production Bigtable implementation in C++ and legacy deployments built on Tera. Think twice for new wide-column deployments (prefer HBase, Bigtable or ScyllaDB).

What are the best alternatives to Baidu Tera?

Common alternatives to Baidu Tera include Apache HBase, Google Cloud Bigtable, ScyllaDB, Apache Cassandra and TiKV. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Baidu Tera still maintained?

Baidu Tera is discontinued. No releases or commits on master since v2.14 (January 2019). Apache HBase or a managed Bigtable service are maintained equivalents.

How popular is Baidu Tera?

Baidu Tera ranks #566 of 844 databases on the WhichDB Score (1.2/100), and #10 among wide-column databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.