SpinTheMic
Pro

Explain it in 60 seconds

Storing followers and following

System Design · Design: Social and Messaging · Beginner

How would you store follow relationships in a social network?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Edge table: follower_id, followee_id.
  • Two indexes/tables for both directions.
  • Follower counts stored separately.
  • Partition by user.
  • Celebrities have huge lists.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics