...

/

Introduction to Key-Value Store [backup]

Introduction to Key-Value Store [backup]

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.

It has proved challenging to scale traditional databases with strong consistency and high availability in a distributed environment. Many real-world services like Amazon, Facebook, Instagram, Netflix, etc. use primary-key access to a data store instead of traditional ...

Create a free account to access the full course.

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