Topics / 🏛️ Architecture & Design Patterns / 🏛️ Level 30: System Design & Architecture

Quiz · about 2 minutes · free

SQL or NoSQL?

Every player has a different bag of items, and you look it up by player ID billions of times.

Relational databases shine for joins, constraints and transactions. Key-value and document stores shine for massive scale with simple access patterns.

Relational (SQL): joins, constraints, transactions, finance, reporting. Key-value / document: lookup by key at huge scale, flexible shapes: inventories, sessionsRelational (SQL)joins, constraints, transactionsfinance, reportingKey-value / documentlookup by key at huge scaleflexible shapes: inventories, sessions
🌍 Real-life storyReal-life story: game inventories, session stores and shopping carts are often key-value or document stores (DynamoDB, MongoDB, Redis) because access is by key and the shape varies. Reporting and finance usually stay relational.
Flexible per-player items, huge volume, lookups by player ID. Which fits best?
  1. A data warehouse such as Redshift
  2. Flat files on a shared drive
  3. PostgreSQL with one table and 500 nullable columns
  4. A key-value or document store such as DynamoDB

Answer it interactively → Free. Sign in with Google to run it. Your code runs on your device.

In this level you'll learn:
More in Level 30: System Design & Architecture

Share on LinkedIn