Key-Value Store

Definition

Simple database model that stores data as key-value pairs. Like having a giant dictionary where you can look up any value using its unique key.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between a key-value store and a relational database?
A key-value store retrieves data using a single unique key (like looking up a value in a dictionary). A relational database stores data in tables with rows and columns and supports complex queries (joins, aggregations, flexible filtering). Key-value stores are usually faster and simpler for direct lookups, while relational databases are better for rich querying and strong relational constraints.
When should I use a key-value store?
Use a key-value store when your access pattern is mostly "get by key" and "put by key" and you need very low latency and easy scaling. Common uses include session storage, caching user profiles or preferences, shopping carts, feature flags, rate limiting counters, and storing tokens or API keys. Avoid it when you need complex queries across many fields or frequent joins.
How much does a key-value store cost?
Cost depends on (1) read/write request volume, (2) data stored (GB), (3) replication and backup features, and (4) provisioned vs on-demand capacity (where applicable). Managed services typically charge for storage plus operations/throughput, and may add costs for backups, multi-region replication, and network egress. A good estimate starts with expected requests per second, average item size, and retention period.

Category: data

Difficulty: basic

Related Terms

See Also