WED · 07.29 · WEEK 01

Rate Limiter:一次读到 High-Level Design

从需求读到 HLD,完成客户端身份、规则、接口、部署位置、算法选择与 429 契约。

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

原文定位

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

  1. Rate Limiter / Understanding the Problem
  2. Rate Limiter / Functional Requirements
  3. Rate Limiter / Non-Functional Requirements
  4. Rate Limiter / The Set Up
  5. Rate Limiter / Defining the Core Entities
  6. Rate Limiter / System Interface
  7. Rate Limiter / High-Level Design

上午执行

时间动作
08:50—09:10闭卷设计 100 requests/minute/user;明确 limiter 在哪里执行。
09:10—10:05读到 High-Level Design;补 Rules、Clients、Requests 与 isRequestAllowed 契约。
10:05—10:35比较 in-process、dedicated service、API gateway 三种放置方式。
10:35—10:55选 Token Bucket,讲清 bucket capacity、refill rate、remaining 和 reset time。
必须产出:一张 Rate Limiter HLD:identity → rule match → atomic bucket check → allow / 429。

掌握标准

算法 · Arrays & Hashing

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

#题目留下的记录
1Product of Array Except SelfPattern / Invariant / Bug / Complexity
2Valid SudokuPattern / Invariant / Bug / Complexity
3Group Anagrams · 限时复刷Pattern / Invariant / Bug / Complexity

晚上

英文口述 10 分钟:placement → identity → algorithm → interface。不要提前进入 Redis 扩展。
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.