Storage and data platform

Partition key choice is where most system designs live or die, and it is the first thing a good interviewer probes. This chapter covers the engines (LSM vs B-tree, and what compaction actually costs you), the four stores you will be asked to model in (DynamoDB, Cassandra, MongoDB, PostgreSQL), the search engine you probably operate (OpenSearch), and the analytics layer that increasingly sits behind AI features.

The habit worth building: say "access patterns first, schema second" before you draw anything, then show the access patterns as a numbered list, then design the key. Interviewers listening for a staff signal are listening for that ordering.

What this chapter covers

Source: §20, §46.