Designing Instagram: Media Upload & Feed System
Overview When designing an Instagram-like system, two of the most critical components are: Media uploading pipeline Feed generation strategy This post summarizes key design decisions and tradeoffs. 1. Media Uploading Pipeline High-level flow Client requests a pre-signed URL from backend Backend returns S3 pre-signed URL Client uploads media directly to S3 (chunked upload) S3 triggers an event (e.g., via notification / event bridge) Backend processes the upload asynchronously Key design decisions 1. Create post record early Before upload starts: ...