Choosing a Database
A system design answer almost always names a database, and the interviewer wants to hear why. Start from questions about the data and only then pick a kind of store: tables, key-value, wide-column, document, graph, or a globally consistent relational database (each is explained below). After this section you can justify a choice in one minute and name what you give up.
Topics in this section
- Start from the questions, not the product
- Relational tables, SQL and transactions
- Key-value stores (Dynamo)
- Wide-column stores (Bigtable and Cassandra)
- Document and graph stores
- A globally consistent relational database (Spanner)
- Design the tables for the queries