WIPIVERSE All articles

YugabyteDB

YugabyteDB is a high-performance, transactional, distributed SQL database designed for cloud-native applications. It is developed by Yugabyte, Inc., a company founded in 2016 by former Facebook engineers Kannan Muthukkaruppan, Karthik Ranganathan, and Mikhail Bautin — all of whom had previously worked on building and operating Apache Cassandra and HBase at Facebook for workloads such as Facebook Messenger.

Overview

YugabyteDB is an open-source database released under the Apache 2.0 license. It is written primarily in C++ and supports deployment on bare metal, virtual machines, Docker, Kubernetes, and other container management platforms. It is classified as a relational database management system (RDBMS) and is available for Alma Linux 8.x and derivatives, as well as macOS.

In terms of the CAP theorem, YugabyteDB is classified as a Consistent/Partition Tolerant (CP) database, meaning it prioritizes consistency and partition tolerance over availability. It aims to be strongly transactionally consistent across failure zones, i.e., ACID compliant.

Architecture

YugabyteDB consists of two main layers:

DocDB (Storage Engine)

DocDB is the underlying storage engine, built on a customized version of RocksDB combined with sharding and load-balancing algorithms. It uses the Raft consensus algorithm for data replication across nodes and includes a distributed transaction manager and Multiversion Concurrency Control (MVCC) to support distributed ACID transactions. DocDB also employs a Hybrid Logical Clock, which combines coarsely synchronized physical clocks with Lamport clocks to track causal relationships. The DocDB layer is not directly accessible by users.

YugabyteDB Query Layer (YQL)

The query layer is pluggable and abstracts query processing from storage. Two APIs are currently available:

  • YSQL – A PostgreSQL-compatible SQL API based on PostgreSQL v11.2. It reuses native PostgreSQL code for the query layer, replacing only the storage engine with DocDB. YSQL supports triggers, stored procedures, PostgreSQL extensions that operate in the query layer, and native JSONB support.
  • YCQL – A Cassandra Query Language (CQL)-like API based on Cassandra v3.10, rewritten in C++. Unlike standard Cassandra, YCQL supports transactional consistency, native JSON data types, and secondary indexes.

Data written to one API is not directly accessible via the other, but YSQL can access YCQL tables using PostgreSQL's foreign data wrapper feature.

History

YugabyteDB was initially available in community and enterprise editions. In July 2019, Yugabyte open-sourced previously commercial features and consolidated the product into a single open-source offering under Apache 2.0.

Funding

  • Series A (2016): $8 million from Lightspeed Venture Partners and Jeff Rothschild
  • Series A (2018): $16 million from Lightspeed Venture Partners and Dell Technology Capital
  • Series B (2020): $30 million from Wipro Ventures, Lightspeed Venture Partners, Dell Technology Capital, and 8VC
  • Series B (2021): $48 million from Wipro Ventures, Lightspeed Venture Partners, Greenspring Associates, Dell Technology Capital, and 8VC
  • Series C (2021): $188 million from Wells Fargo Strategic Capital, Sapphire Ventures, Meritech Capital Partners, Lightspeed Venture Partners, Dell Technology Capital, and 8VC, giving the company a valuation of $1.3 billion (unicorn status)

Cluster-to-Cluster Replication

YugabyteDB supports asynchronous one-way or bi-directional replication between separate database instances. One-way replication can create read-only copies for workload offloading or active-passive standbys. Bi-directional replication is used for active-active configurations and geo-distributed applications.

Migration Tooling

Yugabyte provides YugabyteDB Voyager, a tool designed to facilitate the migration of Oracle and other databases to YugabyteDB. It supports migration of schemas, procedural code, and data from source platforms.

Key Features

  • Distributed ACID transactions
  • Auto-sharding and auto-rebalancing
  • PostgreSQL compatibility
  • Multi-cloud and multi-deployment model support
  • Open source (Apache 2.0 license)

See Also

  • Cloud database
  • Distributed SQL
  • NewSQL
  • Comparison of relational database management systems
  • Cloud-native computing
Browse

More topics to explore

    Browse all articles