bugfree Icon
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course
interview-course

System Design Question

Design a Social Media Platform like Facebook or Twitter

bugfree Icon

Hello, I am bugfree Assistant. Feel free to ask me for any question related to this problem

Functional Requirements:

  • Users can create an account and log in.
  • Users can post short text updates (e.g., up to 280 characters).
  • Users can follow and unfollow other users.
  • Users can view a personalized feed of posts from users they follow.
  • Users can like posts.
  • Users can view profiles of other users, including their posts and follower/following counts.

Non-Functional Requirements:

  • The system should be able to serve up to 100 million daily active users.
  • The home feed should load the first 10 posts within 500ms for the user.
  • The system should be highly available, targeting 99.9% uptime.
  • Eventual consistency is acceptable for feeds and likes.
  • The system should be horizontally scalable to handle growth in users and data volume.

System Design Diagrams

Zoom In and Out via trackpad or posture