ArticleslgStudy

computer science

YDB (database)

YDB (database) 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 YDB (database) rather than just read about it. In short: YDB (Yet another DataBase) is a distributed SQL database management system (DBMS) developed by Yandex, available as open-source technology. Functionality YDB is a technology that allows creating large web services capable of supporting large operational loads of up to millions requests per second.

Key takeaways

  • YDB (database) 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 YDB (database) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of YDB (database) from memory before moving on to harder problems.

Reference excerpt

YDB (Yet another DataBase) is a distributed SQL database management system (DBMS) developed by Yandex, available as open-source technology.

Functionality YDB is a technology that allows creating large web services capable of supporting large operational loads of up to millions requests per second. It uses a strongly typed dialect of SQL — YDB Query Language (YQL) as a default query language and supports ACID transactions. The closest analogues of this DBMS available as open-source software are YugabyteDB and CockroachDB. YDB can be either self-deployed to computer clusters across physical hosts or on virtual machines via Kubernetes or as a managed service in Yandex Cloud. Serverless computing mode or dedicated mode are available for the managed service option.

Architecture YDB works on clusters with shared-nothing architecture and uses standard commodity hardware. The system is based on tablets which implement a communication protocol for solving consensus in a network of unreliable processors. Functionally, this protocol is similar to Paxos and Raft. User tablets in YDB have a mandatory primary key and are sharded by its ranges. Shards with user data are controlled by tablets, called DataShards. The size of a DataShard can reach several gigabytes. It can automatically split into multiple tablets when data storage threshold or shard load threshold is exceeded. This is how the system scales transparently based on the user load. In addition to DataShard, other tablet types include, among others:

SchemeShard, which stores metadata about user tables; Hive, which balances and launches tablets; Coordinator and Mediator, which schedule distributed transactions. Data from tablets is stored in the Distributed Storage layer which is a key-value storage with a specialized protocol to support the tablet protocol. Distributed Storage ensures data replication, while data from tablets is stored as BLOBs. YDB executes distributed transactions between data from one or more tables using a distributed transaction framework based on the Calvin algorithm. Unlike Calvin, YDB supports interactive and non-deterministic transactions by using record locking. YDB is based on the actor model. Actors are single-threaded back-end automats that exchange messages with each other while residing on different cluster servers. Messages within the network are exchanged using the interconnect library developed as part of the project. A number of digital services, such as virtual block devices or persistent queues, have been developed as a layer over YDB. YDB supports user interaction via the gRPC protocol with several client SDKs implementing procedures for node discovery, client balancing, etc. YDB does not support UUID as standalone data type. It doesn't have a built-in function to automatically increment field value when adding data to a table.

History In 2010, Yandex started working on its own NoSQL DBMS KiWi and rolled it out for internal use in 2011. However, KiWi had eventual consistency, as well as other disadvantages of the NoSQL model. In 2012, to cover its needs for DBMS, Yandex starts the KiKiMR project, which later becomes known as YDB. In 2016, YDB was rolled out to Yandex services. In 2018, the Yandex Cloud platform was launched with data storage based on YDB. At the same time, the company announced that in the future it would make YDB available as a managed service in Yandex Cloud, and later provided customers with access to this service, as well as other managed services, such as PostgreSQL, MongoDB and others. This cloud version was called Yandex Database (Managed service for YDB, later). In April 2022, the YDB DBMS was published on GitHub as free software under the Apache 2.0 License.

References

External links Official website

Worked examples

Example 1 — a first encounter with YDB (database)

Start with the simplest possible case. Write down what YDB (database) 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 YDB (database) 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 YDB (database) 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 YDB (database)

In research
YDB (database) 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 YDB (database) 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
YDB (database) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cross-platform free software, Free database management systems, Relational database management systems, so understanding it makes those chapters shorter.
In everyday life
Look for YDB (database) 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 “YDB (database)” →

How to study YDB (database) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what YDB (database) 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 YDB (database) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is YDB (database) in simple terms?

YDB (Yet another DataBase) is a distributed SQL database management system (DBMS) developed by Yandex, available as open-source technology. Functionality YDB is a technology that allows creating large web services capable of supporting large operational loads of up to millions requests per second.

Why does YDB (database) 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 YDB (database)?

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 YDB (database).

Tags

  • Cross-platform free software
  • Free database management systems
  • Relational database management systems
  • Yandex software

Keep exploring