Skip to content

Redis & NoSQL stores

Redis data structures, persistence and eviction, and how to choose between document, key-value, wide-column, graph, search and vector stores.

3 lessons

Redis

  1. 1Redis data structures and atomicitySend Redis the change, not the new value: one command is atomic; your read-then-write is not.
  2. 2Redis persistence (RDB and AOF) and eviction policiesPersistence decides what a restart brings back; the eviction policy decides what a full Redis deletes, and each instance has exactly one.

Choosing stores and consistency

  1. 3Store families: document, key-value, wide-column, graph, search, vectorPick the store by the read it makes cheap, and know which reads it makes expensive.