Social & Feed
Design Instagram (Focus on Photo Storage and CDN)
A photo-sharing platform optimized for write-once/read-many media delivery via multi-resolution transcoding and aggressive edge caching.
Open and Simulate this Architecture in InfraDraftCore Architectural Components
Photo Upload & Ingestion Service
Accepts uploads and hands them to the processing pipeline.
Image Processing Pipeline
Generates multiple resolutions/formats from each original.
Object Storage
Durable blob store holding originals and every derived variant.
Edge CDN Distribution
Serves images from a point of presence near the viewer.
Metadata Store
Post, user, caption, and tag data separate from the binary image data.
News Feed Generation Service
Assembles the personalized feed from the follow graph and recent posts.
Follower Graph Store
Backbone of both the feed and discovery surfaces.
Like/Comment Counter Service
Eventually-consistent high-throughput counters that don't hot-spot the post record.