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

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:


Leave a Reply

Your email address will not be published. Required fields are marked *