Interview LineLesson
Data model: from endpoints to keys
Five endpoints are on the board. Turn them into entities and relationships, list the queries they run, pick a store that serves those queries — and name the key behind each hot read before anyone asks about scale.
14 minMediumStation: Data modelMembers lesson
Membership isn’t open yet. The free lessons are open — 19 of them.
- Back-of-the-envelope estimates
- API design
- Data model
- High-level design
- Design it: a URL shortener
What you'll be able to do
- 1Explain how the API's resources become entities, attributes and relationships (one-to-many, many-to-many), and where each relationship lives as keys.
- 2Choose a store — relational, a key-based NoSQL family, object storage for the bytes — from the access patterns and consistency needs, and justify it in one sentence.
- 3Predict which key or index serves each hot query, which query would have to ask every shard, and when copying data for a hot read is worth the extra writes.
Inside the lesson
- steps
- 11
- questions
- 15
- simulations
- 0