Explain it in 60 seconds
Memory cost of precomputed timelines
System Design · Design: Social and Messaging · Intermediate
Precomputed timelines in Redis are fast but memory-hungry. How do you keep the cost under control?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Store only post IDs, not content.
- Cap timeline length (e.g. 800).
- Only for active users.
- Rebuild inactive users on demand.
- Compact encoding.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.