Facebook Instagram Twitter Vimeo Youtube
Sign in
  • Home
  • About
  • Team
  • Buy now!
Sign in
Welcome!Log into your account
Forgot your password?
Privacy Policy
Password recovery
Recover your password
Search
Logo
Sign in
Welcome! Log into your account
Forgot your password? Get help
Privacy Policy
Password recovery
Recover your password
A password will be e-mailed to you.
Thursday, February 5, 2026
Sign in / Join
  • Contact Us
  • Our Team
Facebook
Instagram
Twitter
Vimeo
Youtube
Logo
  • Home
  • News
    • News

      Interview With David Kosmayer – Bookmark by Aviva Zacks

      25 December 2025
      News

      House Democrats Official Online Resume Bank Exposed the PII of Thousands of Government Job Seekers by

      6 December 2025
      News

      House Democrats Official Online Resume Bank Exposed the PII of Thousands of Government Job Seekers by

      29 October 2025
      News

      Cloudflare Thwarts Record-Breaking 22.2 Tbps DDoS Attack by Paige Henley

      3 October 2025
      News

      Ransomware Attack Hits Major European Airports via Collins Aerospace Software by Husain Parvez

      3 October 2025
  • Data Modelling & AI
    • AllBig dataBusiness AnalyticsData ScienceData Structure & AlgorithmDatabasesVector DatabaseDeep LearningEthical HackingGenerative AIMachine Learning
      Big data

      Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack

      5 February 2026
      Big data

      Why Clawdbot Went Viral — And How to Build Production-Ready Long-Running Agents with LangGraph and Milvus

      4 February 2026
      Big data

      Is RAG Becoming Outdated Now That Long-Running Agents Like Claude Cowork Are Emerging?

      1 February 2026
      Big data

      Why Claude Code Feels So Stable: A Developer’s Deep Dive into Its Local Storage Design

      31 January 2026
    • Big data
    • Business Analytics
    • Databases
    • Data Structure & Algorithm
    • Data Science
    • Deep Learning
    • Ethical Hacking
    • Generative AI
    • Machine Learning
    • Security & Testing
  • Mobile
    • AllAndroidIOS
      Android

      YouTube’s Auto-dubbing feature is now available to all

      4 February 2026
      Android

      Samsung teases big Galaxy S26 camera upgrades

      4 February 2026
      Android

      Android 16 February 2026 security update goes live, and you might find it surprising

      4 February 2026
      Android

      Android 16 QPR3 simplifies Adaptive Connectivity, clearly showing how it can boost battery life and connection stability

      3 February 2026
    • Android
    • IOS
  • Languages
    • AllAjaxAngularDynamic ProgrammingGolangJavaJavascriptPhpPythonReactVue
      Languages

      Working with Titles and Heading – Python docx Module

      25 June 2025
      Languages

      Creating a Receipt Calculator using Python

      25 June 2025
      Languages

      One Liner for Python if-elif-else Statements

      25 June 2025
      Languages

      Add Years to datetime Object in Python

      25 June 2025
    • Java
    • Python
    • Ajax
    • Php
    • Python
    • Golang
    • Dynamic Programming
    • React
    • Vue
    • Java
    • Javascript
    • NodeJS
    • Angular
  • Guest Blogs
  • Discussion
  • Our Team
HomeData Modelling & AIBig dataDesign Instagram – System Design Interview
Big dataGuest Blogs

Design Instagram – System Design Interview

Algomaster
By Algomaster
15 June 2025
0
3
Share
Facebook
Twitter
Pinterest
WhatsApp

    Design Instagram – System Design Interview

    Ashish Pratap Singh's avatar

    Ashish Pratap Singh
    Mar 20, 2025
    ∙ Paid

    With over 2 billion monthly active users, Instagram is the 3rd most popular social network after Facebook and YouTube.

    What Are Instagram Highlights? Here's How I Make the Most of Them

    source: https://www.makeuseof.com/tag/what-are-instagram-highlights/

    It enables users to upload photos and videos, interact with content, while handling hundreds of millions of daily visitors, managing petabytes of data, billions of views, all while maintaining low latency and high availability.

    Given its scale and complexity, designing Instagram is a popular system design interview question.

    While Instagram supports a wide range of features including direct messaging, Reels, and Stories—this article will primarily focus on the core functionality of photo and video sharing.

    We’ll walk through every step of the design—from requirements and high-level architecture to database and API design—before diving deep into core use cases.


    1. Requirement Clarification

    Before diving into the design, lets outline the functional and non-functional requirements.

    Functional Requirements

    1. Users can upload photos and videos.

    2. Users can add captions to their posts.

    3. Users can follow/unfollow other users.

    4. Users can like, share, and comment on posts.

    5. Support for multiple images/videos in a single post (carousel).

    6. Users can view a personalized feed consisting of posts from accounts they follow.

    7. Users can search by username and hashtag.

    Out of Scope

    1. Direct messaging.

    2. Short-form video content (Reels).

    3. Push Notifications for likes, comments, and follows.

    Non Functional Requirements

    1. Low Latency: The feed should load fast (~100ms).

    2. High Availability: The system should be available 24/7 with minimal downtime.

    3. Eventual Consistency: A slight delay in users seeing the latest posts from accounts they follow is acceptable.

    4. High Scalability: Handle millions of concurrent users and billions of posts.

    5. High Durability: The uploaded photos/videos shouldn’t be lost.


    2. Capacity Estimation

    User Base

    • Total Monthly Active Users (MAUs): 2 billion

    • Daily Active Users (DAUs): → 500 million users/day

    Estimating Read & Write Requests

    Post Uploads (Writes)

    • 100M media uploads/day

    • Each upload generates metadata writes (DB + cache)

    • Total write requests: 100M uploads + 100M metadata writes = 200M writes/day

    Feed Reads

    • Assume an average user scrolls through 100 posts per session

    • 500 million DAUs × 100 posts viewed = 50B feed requests/day

    • Assuming 80% of feed reads are served from cache, backend reads = 10B DB reads/day

    Estimating Storage Requirements

    Assumptions

    • 20% of DAUs (100M) upload media every day

    • 80% of uploads are photos, 20% are videos

    • Average photo size: 1MB

    • Average video size: 10 MB

    Daily Storage Calculation

    • Photos: (100M × 80%) × 1 MB = 80 TB/day

    • Videos: (100M × 20%) × 10 MB = 200 TB/day

    • Total storage per day: 280 TB/day

    Database Storage

    • Metadata per post: ~500 bytes (caption, timestamp, author, engagement counts)

    • Total posts in a year: 100M × 365 = 36B posts

    • Metadata storage per year: 90 TB/year

    Caching Requirements

    • Hot cache size: Store recent & popular 1 billion posts

    • Assume each cached post takes 2 KB (post data + engagement counts)

    • Cache size = 2 TB for active posts (Redis/Memcached)


    3. High Level Design

    This post is for paid subscribers

    Already a paid subscriber? Sign in
    Share
    Facebook
    Twitter
    Pinterest
    WhatsApp
      Previous article
      Master the Art of REST API Design
      Next article
      I created a FREE Low Level Design (LLD) Interview Resource
      Algomaster
      Algomasterhttps://blog.algomaster.io
      RELATED ARTICLES
      Big data

      Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack

      5 February 2026
      Big data

      Why Clawdbot Went Viral — And How to Build Production-Ready Long-Running Agents with LangGraph and Milvus

      4 February 2026
      Big data

      Is RAG Becoming Outdated Now That Long-Running Agents Like Claude Cowork Are Emerging?

      1 February 2026

      LEAVE A REPLY Cancel reply

      Log in to leave a comment

      Most Popular

      Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack

      5 February 2026

      YouTube’s Auto-dubbing feature is now available to all

      4 February 2026

      Samsung teases big Galaxy S26 camera upgrades

      4 February 2026

      Android 16 February 2026 security update goes live, and you might find it surprising

      4 February 2026
      Load more
      Algomaster
      Algomaster
      202 POSTS0 COMMENTS
      https://blog.algomaster.io
      Calisto Chipfumbu
      Calisto Chipfumbu
      6847 POSTS0 COMMENTS
      http://cchipfumbu@gmail.com
      Dominic
      Dominic
      32479 POSTS0 COMMENTS
      http://wardslaus.com
      Milvus
      Milvus
      126 POSTS0 COMMENTS
      https://milvus.io/
      Nango Kala
      Nango Kala
      6849 POSTS0 COMMENTS
      neverop
      neverop
      0 POSTS0 COMMENTS
      https://geeksforgeeks.org
      Nicole Veronica
      Nicole Veronica
      11980 POSTS0 COMMENTS
      Nokonwaba Nkukhwana
      Nokonwaba Nkukhwana
      12066 POSTS0 COMMENTS
      Safety Detectives
      Safety Detectives
      2838 POSTS0 COMMENTS
      https://www.safetydetectives.com/
      Shaida Kate Naidoo
      Shaida Kate Naidoo
      6988 POSTS0 COMMENTS
      Ted Musemwa
      Ted Musemwa
      7222 POSTS0 COMMENTS
      Thapelo Manthata
      Thapelo Manthata
      6936 POSTS0 COMMENTS
      Umr Jansen
      Umr Jansen
      6919 POSTS0 COMMENTS

      EDITOR PICKS

      Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack

      5 February 2026

      YouTube’s Auto-dubbing feature is now available to all

      4 February 2026

      Samsung teases big Galaxy S26 camera upgrades

      4 February 2026

      POPULAR POSTS

      Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack

      5 February 2026

      YouTube’s Auto-dubbing feature is now available to all

      4 February 2026

      Samsung teases big Galaxy S26 camera upgrades

      4 February 2026

      POPULAR CATEGORY

      • Languages45985
      • Data Modelling & AI17611
      • Android15985
      • Java15156
      • Mobile12983
      • Guest Blogs12921
      • Javascript12713
      • Data Structure & Algorithm10077
      Logo

      ABOUT US

      We provide you with the latest breaking news and videos straight from the technology industry.

      Contact us: hello@geeksforgeeks.org

      FOLLOW US

      Blogger
      Facebook
      Flickr
      Instagram
      VKontakte

      © NeverOpen 2022

      • Home
      • News
      • Data Modelling & AI
      • Mobile
      • Languages
      • Guest Blogs
      • Discussion
      • Our Team