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

System Design Question

Design NewsFeed System for Social Media

bugfree Icon

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

Functional Requirements:

  • Users can create and view posts (text, images, videos).
  • Users have a personalized feed showing posts from users they follow or are friends with.
  • Users can like and comment on posts.
  • Feed should show posts in reverse chronological order (most recent first).
  • Users can control the visibility of their posts (public, friends only).
  • Users receive real-time updates when new posts are available in their feed.
  • Support for infinite scrolling or pagination in the feed.

Non-Functional Requirements:

  • The system should be highly available and responsive (feed loads within 2-3 seconds under normal conditions).
  • The system must be able to scale to millions of users and posts.
  • Data consistency should be eventual for the feed (minor delays in showing new posts are acceptable).
  • User data and posts should be securely stored and transmitted.
  • The system should be reliable, with minimal downtime.
  • Privacy controls must be enforced for post visibility.
  • The system should be able to handle peak loads gracefully.

System Design Diagrams

Zoom In and Out via trackpad or posture