ArticleslgStudy

computer science

YugabyteDB

YugabyteDB is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand YugabyteDB rather than just read about it. In short: YugabyteDB is a high-performance transactional distributed SQL database for cloud-native applications, developed by Yugabyte. History Yugabyte was founded by ex-Facebook engineers Kannan Muthukkaruppan, Karthik Ranganathan, and Mikhail Bautin.

YugabyteDB — main illustration
YugabyteDB — illustration

Key takeaways

  • YugabyteDB belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect YugabyteDB to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of YugabyteDB from memory before moving on to harder problems.

Reference excerpt

YugabyteDB is a high-performance transactional distributed SQL database for cloud-native applications, developed by Yugabyte.

History Yugabyte was founded by ex-Facebook engineers Kannan Muthukkaruppan, Karthik Ranganathan, and Mikhail Bautin. At Facebook, they were part of the team that built and operated Cassandra and HBase for workloads such as Facebook Messenger and Facebook's Operational Data Store. The founders came together in February 2016 to build YugabyteDB. YugabyteDB was initially available in two editions: community and enterprise. In July 2019, Yugabyte open-sourced previously commercial features and launched YugabyteDB as open-source under the Apache 2.0 license.

Funding In October 2021, five years after the company's inception, Yugabyte closed a $188 Million Series C funding round to become a Unicorn start-up with a valuation of $1.3Bn

Architecture YugabyteDB is a distributed SQL database that aims to be strongly transactionally consistent across failure zones (i.e. ACID compliance). In CAP Theorem terms YugabyteDB is a Consistent/Partition Tolerant (CP) database. YugabyteDB has two layers, a storage engine known as DocDB and the Yugabyte Query Layer.

DocDB The storage engine consists of a customized RocksDB combined with sharding and load balancing algorithms for the data. In addition, the Raft consensus algorithm controls the replication of data between the nodes. There is also a Distributed transaction manager and Multiversion concurrency control (MVCC) to support distributed transactions. The engine also exploits a Hybrid Logical Clock that combines coarsely-synchronized physical clocks with Lamport clocks to track causal relationships. The DocDB layer is not directly accessible by users.

YugabyteDB Query Layer Yugabyte has a pluggable query layer that abstracts the query layer from the storage layer below. There are currently two APIs that can access the database: YSQL is a PostgreSQL code-compatible API based around v11.2. YSQL is accessed via standard PostgreSQL drivers using native protocols. It exploits the native PostgreSQL code for the query layer and replaces the storage engine with calls to the pluggable query layer. This re-use means that Yugabyte supports many features, including:

Triggers & Stored Procedures PostgreSQL extensions that operate in the query layer Native JSONB support YCQL is a Cassandra-like API based around v3.10 and re-written in C++. YCQL is accessed via standard Cassandra drivers using the native protocol port of 9042. In addition to the 'vanilla' Cassandra components, YCQL is augmented with the following features:

Transactional consistency - unlike Cassandra, Yugabyte YCQL is transactional. JSON data types supported natively Tables can have secondary indexes Currently, data written to either API is not accessible via the other API, however YSQL can access YCQL using the PostgreSQL foreign data wrapper feature. The security model for accessing the system is inherited from the API, so access controls for YSQL look like PostgreSQL, and YCQL looks like Cassandra access controls.

Cluster-to-cluster replication In addition to its core functionality of distributing a single database, YugabyteDB has the ability to replicate between database instances. The replication can be one-way or bi-directional and is asynchronous. One-way replication is used either to create a read-only copy for workload off-loading or in a read-write mode to create an active-passive standby. Bi-directional replication is generally used in read-write configurations and is used for active-active configurations, geo-distributed applications, etc.

Migration tooling Yugabyte also provides YugabyteDB Voyager, tooling to facilitate the migration of Oracle and other similar databases to YugabyteDB. This tool supports the migration of schemas, procedural code and data from the source platform to YugabyteDB.

See also

Cloud database Distributed SQL Comparison of relational database management systems Comparison of object–relational database management systems Cloud native computing Database management system List of databases using MVCC List of relational database management systems

References

External links Official website yugabyte-db on GitHub YugabyteDB Tips

Illustrations

YugabyteDB: YugabyteDB Architecture
YugabyteDB Architecture

Worked examples

Example 1 — a first encounter with YugabyteDB

Start with the simplest possible case. Write down what YugabyteDB claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to YugabyteDB before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about YugabyteDB ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of YugabyteDB

In research
YugabyteDB appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses YugabyteDB in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
YugabyteDB is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bigtable implementations, Cloud databases, Companies based in Silicon Valley, so understanding it makes those chapters shorter.
In everyday life
Look for YugabyteDB outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “YugabyteDB” →

How to study YugabyteDB in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what YugabyteDB means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain YugabyteDB out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is YugabyteDB in simple terms?

YugabyteDB is a high-performance transactional distributed SQL database for cloud-native applications, developed by Yugabyte. History Yugabyte was founded by ex-Facebook engineers Kannan Muthukkaruppan, Karthik Ranganathan, and Mikhail Bautin.

Why does YugabyteDB matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study YugabyteDB?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on YugabyteDB.

Tags

  • Bigtable implementations
  • Cloud databases
  • Companies based in Silicon Valley
  • Database-related software for Linux
  • Database companies
  • Distributed computing
  • Fault tolerance
  • NewSQL
  • Software companies established in 2016
  • Software companies of the United States

Keep exploring