Interview practice question
Database for user sessions
System Design · Databases · Beginner
Your app needs to store login sessions for 20 million active users with very fast lookup. What would you use?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Key-value store (Redis, DynamoDB).
- Lookup by session ID.
- TTL for automatic expiry.
- Replication for availability.
- Small values, huge read rate.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.