CTO 101 — S01: Database — Chap02: Key-value stores

key-value stores are NoSQL database, and they simply pair keys and values for storage and retrieval of data. It is simple and fast and for that reason normally it is used as complementary database beside another DB.
Most Popular: Redis, Memcached
Redis now is having almost all extra features of Memcached and many extras.
Where to use:
- Caching data from the main database for highly used queries
- Lots of small continuous reads and writes
- Having lots of identical query responses from the main DB, in this case, normally the response get cached in a key-value in-memory database
- Keeping the session information for each user. This is very common in game industry especially MMORPG
- Storing BLOB objects or any large object that needs a quick access
- Redis as well is considered as data structure store which keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyper logs and this can create lots of new use-cases
- Message Que
- pub/sub pattern
Please share this and check out the other Databases in this series:
- CTO 101 — S01: Database — Chap01: Relational Database
- CTO 101 — S01: Database — Chap02: Key-value stores
- CTO 101 — S01: Database — Chap03: Wide Column Stores
- CTO 101 — S01: Database — Chap04: Document Stores
- CTO 101 — S01: Database — Chap05: Graph DBMS
- CTO 101 — S01: Database — Chap06: RDF Store
- CTO 101 — S01: Database — Chap07: Time Series DBMS
- CTO 101 — S01: Database — Chap08: Object Oriented DBMS
- CTO 101 — S01: Database — Chap09: Search Engine