internalsGet Pro

System Design · Module 06

NoSQL databases and when to use them

Lessons
11
Free
0
Reading
~3 h

Your progress

0 / 11 lessons done

Sign in to track

Lessons

  1. SQL vs NoSQL: choosing a data storeDatabase choices shape how you query data, prevent conflicting updates and recover from failures. At work, the useful question is not which database category wins, but which design meets your workload with manageable complexity.18 min
  2. Document and key-value databases comparedCarts and product catalogs can both contain JSON, yet need different storage operations. Choosing by those operations helps you avoid expensive scans, lost updates and unnecessary databases.19 min
  3. Columnar and wide-column databases comparedSimilar database names can hide different access patterns. Understanding what each layout lets a query avoid helps you choose a store without moving the same bottleneck elsewhere.18 min
  4. Graph databases: when relationships are the dataRecommendations, dependency analysis and access checks often follow connections rather than retrieve isolated records. You need to recognize when graph storage helps, and when traversal creates more work than your service can afford.19 min
  5. Time-series databases: storing metrics and eventsDashboards can hide failures when timestamps, missing samples or summaries are handled incorrectly. Time-series design connects those correctness questions to storage growth and query cost.19 min
  6. Distributed hash tables: decentralized key lookupA hash can identify a destination without telling you how to reach it. Distributed hash tables show how nodes cooperate to find that destination without every node knowing the whole cluster.19 min
  7. Bloom filters: quickly checking whether an item existsStorage systems often spend work proving that a key is absent. Bloom filters can avoid that work, but only when their membership guarantee matches the data being searched.19 min
  8. Data tiering: moving old data to cheaper storageHistorical records can consume expensive database capacity long after their busiest period. Moving them safely requires a retrieval contract and a verified handoff, not just a scheduled export.18 min
  9. Object storage vs databases: where files belongProduct photos, documents and exports often grow faster than business records. Separating them can reduce database work, but it also creates failure cases that your application must handle.18 min
  10. Polyglot persistence: using multiple databases togetherAdding a search engine or another database creates a new consistency boundary. You need to know which copy decides correctness, how changes reach other copies, and how to recover when they disagree.19 min
  11. Case: how Discord scaled message storageGrowing storage can expose problems that adding nodes does not fix. This case connects data modeling, request control and migration safety.19 min

Practise with

Terms this module teaches 34

Open glossary

Access pattern

An operation an application needs to perform on stored data, including how it identifies, filters or orders that data.