Design a Social Media Platform (Instagram / Twitter)
Unify social media primitives: User follow graph (Graph DB / B-Tree), photo upload presigned pipeline, Redis home timeline feed, and follower counters.
01.1. Functional & Non-Functional Requirements
A full-featured Social Media Platform (Instagram / Twitter) synthesizes multiple core distributed systems: media ingestion, social graph indexing, timeline generation, viral activity counters, and explore recommendations.
Functional Requirements
- User Profiles & Follow Graph: Follow/unfollow users, list followers and following accounts.
- Post Creation & Media Upload: Upload photos/videos with captions, hashtags, and mentions.
- Home Timeline Feed: Serve a reverse-chronological and ranked stream of posts from followed users.
- Social Interactions: Like, comment, retweet/repost, and bookmark posts.
- Explore & Search: Discover trending hashtags and recommended content.
Non-Functional Requirements
- Massive Ingress & Read Scale:
1 billion daily active users (DAU),100 million new posts/day, and10 billion timeline views/day. - Sub-50ms Feed Response: p99 feed rendering latency
< 50 ms. - Viral Like Resilience: Handle viral celebrity posts receiving
100,000+ likes/secondwithout database row lock contention.
Instagram / Twitter Comprehensive Microservice Architecture ๐ธ
Instagram / Twitter Comprehensive Microservice Architecture ๐ธ
Decoupled media ingestion, social graph relationships, Redis Sorted Set timeline feeds, and buffered write-back like counters.
Unlock Topic #246: Design a Social Media Platform (Instagram / Twitter)
You are viewing a preview. The full in-depth engineering deep dive, interactive simulators, architecture flowcharts, and self-assessment quizzes for this topic are available with Pro or Lifetime Access.
Failure modes, high-throughput bottlenecks, and real FAANG implementation decisions.
Interactive system topology diagrams, live parameter simulators, and downloadable SVG charts.
Staff-level multiple-choice quiz questions with instant feedback and answer explanations.
Firebase Google authentication automatically syncs your completed topics and quiz scores.
How clear and staff-actionable was this system breakdown?