Explain it in 60 seconds
Storing threaded comments
System Design · Design: Social and Messaging · Beginner
How would you store nested, threaded comments under posts?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Comment has post_id and parent_id.
- Adjacency list is simple.
- Paginate top-level comments.
- Load replies on demand.
- Materialised path or closure table for deep trees.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.