WEEK 03 · 2026-08-14 · FRI

Instagram:先盲做,再迁移 News Feed/Comments 的可复用与失效假设

把 Instagram 当迁移题:先独立设计,再读 live 目录,只保留真正迁移成功的机制。

今日固定时间表

08:30 wake 只保留起床;学习从 08:50 开始。三块窗口不互相挤占。

08:30 wake起床、早餐、准备白板;不安排预读或算法。
08:50—09:2008:50—10:55 system design
盲做 — 不看原文,独立画 media metadata + feed fan-out + CDN render path。
09:20—09:5008:50—10:55 system design
精确原文 — 读 Instagram visible live inventory 全部 anchors,记录 premium gate 之外可验证范围。
09:50—10:2508:50—10:55 system design
迁移差异 — 对比 News Feed/Live Comments:需求变化、失效复用、新瓶颈、浅层迁移追问。
10:25—10:5508:50—10:55 system design
transfer close — 输出 8 分钟 Instagram transfer answer,不重讲 News Feed 原图。
14:30—16:15NeetCode Tag · Stack
三道题在下方独立算法表执行,避免系统设计表格挤压算法细节。
20:30—21:1520:30—21:15 Instagram 迁移口述:先讲盲做版本,再讲读完 live heading 后改了什么。

算法模块

连续单一 NeetCode Stack tag;每天 3 题,14:30—16:15 完成。

#ProblemInvariant focus执行
13Car Fleet限时复盘:同位置/同到达时间。35 分钟限时 + 5 分钟 invariant/bug risk
14Largest Rectangle in Histogram限时复盘:哨兵柱清栈。35 分钟限时 + 5 分钟 invariant/bug risk
15Valid Parenthesesmock 前热身:栈空访问。35 分钟限时 + 5 分钟 invariant/bug risk

闭卷起手

先暴露自己的当前模型,再用 live headings 修正。

30 分钟盲做 Instagram:photo/video post、follow、chronological feed、media upload/render。写下三条复用假设,再主动打破它们。

Hello Interview 精确目录

day 页面必须链接到具体 section anchors;周级 overview 不放小节链接。

项目精确 section anchorDisposition今天怎么用
InstagramUnderstanding the Problemrequired readingtransfer problem, read after blind design
InstagramFunctional Requirementsrequired readingphoto/video posts, follow, chronological feed
InstagramNon-Functional Requirementsrequired readinginstant media render and 500M DAU
InstagramThe Set Uprequired readingscope limits
InstagramDefining the Core Entitiesrequired readingUser, Post, MediaAsset, Follow, FeedItem
InstagramAPI or System Interfacerequired readingupload/init, create post, get feed
InstagramHigh-Level Designrequired readingmetadata feed plus media data plane
Instagram1. Users should be able to create posts featuring photos, videos, and a simple captionrequired readingmedia processing state machine
Instagram2. Users should be able to follow other usersrequired readingsame graph shape, different fan-out payload
Instagram3. Users should be able to see a chronological feed of posts from the users they followrequired readingfeed hydration with media metadata
InstagramPotential Deep Divesdeep divetransfer pressure
Instagram1) The system should deliver feed content with low latency (< 500ms)deep divefeed cache, metadata hydration and pagination
Instagram2) The system should render photos and videos instantly, supporting photos up to 8MB and videos up to 4GBdeep diveblob/metadata separation, thumbnails, CDN, transcode
Instagram3) The system should be scalable to support 500M DAUdeep divelarge-scale feed fan-out plus media delivery
InstagramWhat is Expected at Each Level?level expectationcalibrate transfer answer
InstagramMid-levellevel expectationadapt basic feed
InstagramSeniorlevel expectationidentify changed bottlenecks
InstagramStaff+level expectationchallenge invalid reuse assumptions

DDIA 精确决策卡

只读能改变今天设计决定的小节。

项目问题精确 DDIA subsection改变的系统决定
Instagram feed 迁移时,media metadata cache 是什么派生视图?Ch13 · 物化视图和缓存feed row 只携带 post/media pointers;thumbnail/transcode/CDN metadata 是派生读模型,必须能从 media pipeline 重建。

今日产出与修复规则

课程角色TRANSFER · blind first then live-source read
必须交付Instagram transfer memo:changed requirements、invalid reuse assumptions、new bottlenecks、shallow-transfer follow-ups。
修复规则如果只把 News Feed 的 Post 换成 Photo,补 media upload state、transcoding/CDN、thumbnail readiness 和 render SLO。
Local study materials
Detailed lecture notes, audio, recall scripts, PDFs, Staff Q&A, and mock packs are archived locally and are intentionally not published on this site.