Key-Value Store — NoSQL Database

ref: https://editor.analyticsvidhya.com/uploads/49451dbms1.jpg

The second category of NoSQL Database that we are going to discuss is key-value store.

What is key value store and how does it work?

A key-value store offers great approach for storing and accessing large quantities of unstructured data. A key-value store or key-value database uses associative array(like map or dictionary) as base data model where each key is associated with only one value in the collection. In key-value database, a string(hash or filename) is the key while value could be of any type and is stored as BLOB(Binary Large Object) which improves performance by removing need for indexing.

Key-value store provides a way to fetch, insert, delete using commands like get, put, delete which directly makes requests to object in memory.

“Sam Bonvy”: {“location”: “USA”, “shopping frequency”: “low”}

“Sam Bonvy” is the key, while {“location”: “USA”, “shopping frequency”: “low”} is the value.

The data is stored in database by put(key, value), value is fetched by get(key) and deleted by delete(key).

Need for key-value store: In today’s world, as the data is generated at a high rate, so does the need for an efficient data storage that is scalable, flexible and highly proficient at processing large streams of data.

Advantages:

Disadvantages:

Hence, key-value store isn’t suggested for applications requiring frequent updates, or complex queries regarding specific data values, or relationship between multiple unique keys.

Use cases:

Major tech-giants have built infrastructure on key-value store so as to provide high efficiency and faster speed.

Popular key-value databases are Amazon DynamoDB and Redis

The next blog will cover third category of NoSQL database i.e. graph database. Link: https://sakshi8699.medium.com/graph-database-nosql-database-26faaf24fd45

Thank you for checking out my blog! Subscribe to get notified on my upcoming blogs.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
SAKSHI CHHABRA

Master's student in Computer Science from University of Florida. I love to write and help others, so here am i.