Design for Access Patterns
Talk it through out loud with your AI coach.
The problem
- medium
- Pro
A team moving to a key-value store like DynamoDB designed the tables exactly as they would in a relational database, and now many screens need several slow lookups. Explain why access-pattern-first design matters for these stores and how you'd approach it.
What a strong answer covers
- What these stores can and can't do when you query them.
- Why you list the questions before you design the keys.
- How keys and secondary indexes are chosen to answer those questions.
- The trade-offs of this style of design.
Common mistake: Copying a relational schema across and then doing joins in application code with many round trips.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud