TUE · 07.28 · WEEK 01

Bitly:把 Deep Dives 全部打穿

短码生成、低延迟跳转、1B URLs / 100M DAU、数据库故障、counter 故障与 Senior level expectation。

08:50—10:55 系统设计14:30—16:15 三题20:30—21:15 口述

原文定位

按顺序打开。链接直接指向当天需要阅读的小节。

  1. Bitly / Potential Deep Dives
  2. Bitly / 2) How can we ensure that redirects are fast?
  3. Bitly / 3) How can we scale to support 1B shortened urls and 100M DAU?
  4. Bitly / What is Expected at Each Level?
  5. Caching
  6. Numbers to Know
  7. DDIA Ch6 / 处理节点故障
  8. DDIA Ch6 / 复制延迟的问题

上午执行

时间动作
08:50—09:15闭卷写三种短码方案:hash、counter + base62、random code。
09:15—10:05完整读 Bitly Deep Dives;标注 Bad / Good / Great 的升级理由。
10:05—10:25读 DDIA Ch6 的节点故障与复制滞后,映射刚创建短链在 failover 后读不到的窗口。
10:25—10:45算存储、平均/峰值 redirect QPS、cache hit 对 DB QPS 的影响。
10:45—10:55口述 counter outage、cache stampede、DB failover 的恢复路径。
必须产出:一页 Bitly Decision Sheet:短码生成、读路径、容量判断、三类故障及指标。

掌握标准

算法 · Arrays & Hashing

Tag 不切换。三题结束后只记录四个字段。

#题目留下的记录
1Group AnagramsPattern / Invariant / Bug / Complexity
2Top K Frequent ElementsPattern / Invariant / Bug / Complexity
3Two Sum · 限时复刷Pattern / Invariant / Bug / Complexity

晚上

打开英文 Recall PDF,先闭卷讲 8 分钟,再只修正遗漏,不逐句背稿。
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.