System Design Problem

Design a Social Graph Store

Commonly Asked By:MetaLinkedInTwitterNeo4j

  • Follow/Unfollow: User A follows/unfollows User B (directed edge)
  • Friend request: Mutual follow / bidirectional friendship (undirected edge)
  • Get followers: List of users following User A
  • Get following: List of users User A follows
  • Mutual friends: "You and Alice have 12 mutual friends"
  • Friend-of-friend: 2nd degree connections for recommendations
  • Graph queries: Shortest path, connected components, influence scoring
  • Blocking: Exclude blocked users from all graph queries
Loading...