Skip to content

Track cheat sheet

Specialised stores cheat sheet

Metrics, vectors, archives and graphs: stores built for one shape of data, and the way each one fails when the data is not the shape it expects.

Key concepts

Time-series store: the label explosion
A time-series store keeps one series per unique label combination, in memory, so unbounded labels grow it without limit.
Vector search: fast and wrong
Approximate vector search trades recall for speed, and a miss looks like a successful answer.
Cold storage: the restore that takes hours
Archived objects must be restored before reading, which takes hours.
Graph database: the account with 10 million followers
A graph query costs the edges it touches, and one dense node makes every query through it expensive.

Decision rules

  • Labels from small known sets; per-user detail in logs and traces; alert on series count.
  • Measure recall against exact search on real queries; tune search effort; re-rank.
  • Pick tiers from the recovery target: recent backups readable at once, old ones archived; time real restores.
  • Index each node's edges, limit traversals, and handle the densest nodes specially.

Common traps

  • user_id, request_id or pod name as a label, and more memory as the fix.
  • Tuning the index for latency alone and never checking what it misses.
  • Every backup in the cheapest tier, discovered at 6 pm on the day you need one.
  • Assuming every node is like the average one.

Lessons and boss fights

  1. Time-series store: the label explosion · 3 min
  2. Vector search: fast and wrong · 3 min
  3. Cold storage: the restore that takes hours · 3 min
  4. Graph database: the account with 10 million followers · 3 min

Real outages on this track: The monitoring that died first · Five backups, zero restores

BuildBreak · Specialised stores · each line comes from its lesson, where the sources are linked.