Introduction to Key-Value Store

Understand the key-value store and its functional and non-functional requirements.

Motivation

Key-value stores are distributed hash tables (DHT)A distributed hash table (DHT) is a decentralized storage system that provides lookup and storage schemes similar to a hash table, storing key-value pairs. Source: https://www.educative.io/edpresso/what-is-a-distributed-hash-table. A key is generated by the hash function and should be unique. In a key-value store, a key binds to a specific value and does not assume anything about the structure of the value. A value can be a blob, image, server name, or anything the user wants to store against a unique key. Usually, it is preferred to keep the size of value relatively smaller (KB to MB). We can put large data in the blob store and put links to that data in the value field. Key-value stores are useful in many situations, such as storing user sessions in a web application and building No-SQL databases.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy