媒体与社交系统设计套件
消费级媒体与社交产品参考设计:信息流、关系图、照片、视频、直播、聊天、通知、搜索与通话。
14 个模板,按使用顺序分为 3 步。在编辑器中打开任一模板,填写后可导出为 PDF、DOCX 或 HTML。
学习
Back-of-Envelope Estimation and Capacity Model Template
完整Reference latency and unit tables, assumptions register, QPS, storage, bandwidth, cache, server and cost formulas, worked example, sensitivity, traceability
Jeff Dean latency numbers (LADIS 2009)Caching Strategy Template (Cache-Aside, Invalidation, Stampede Control)
标准Per-data-class cache decision: placement, read/write pattern, hit ratio and memory sizing, TTL, invalidation, stampede control, cold start
Scaling Memcache at Facebook (NSDI 2013); RFC 9111; RFC 5861
参考设计
News Feed System Design Template (Reference Design)
完整Social feed: hybrid fan-out on write and read, celebrity threshold, ranking pipeline, feed cache, snapshot pagination, media
Twitter 'Timelines at Scale' (QCon SF 2012), cited as a case studySocial Graph Store System Design Template
完整Objects and associations model, leader and follower cache tiers, read-after-write, hot vertices, inverse edges, sharding, failure modes
Photo Sharing System Design Template
完整Resumable direct upload, media pipeline, display sizes, storage tiers, 64-bit time-sortable ids, sharded PostgreSQL, celebrity fan-out, CDN
Video Streaming System Design Template (Reference Design)
完整Video upload and ABR streaming: chunked transcoding, renditions ladder, CMAF HLS/DASH, CDN, DRM note, view counts, storage tiers
ISO/IEC 23009-1:2026 (DASH); ISO/IEC 23000-19:2024 (CMAF); ISO/IEC 23001-7:2023 (CENC); RFC 8216 (HLS)Live Streaming System Design Template
完整RTMP, SRT and WHIP ingest, transcoding ladder, LL-HLS and LL-DASH, origin and edge fan-out, latency budget, chat and event sync, VOD archive
RFC 8216; HTTP Live Streaming 2nd Edition draft (rfc8216bis-22); RFC 9725 (WHIP)Chat System Design Template (Reference Design)
完整Real-time 1:1 and group chat: WebSocket gateways, per-conversation ordering, fan-out, receipts, offline sync, push, E2EE
IETF RFC 6455 (WebSocket); RFC 9420 (MLS)Notification Service System Design Template (Reference Design)
完整Push, email, SMS and in-app: templates, preferences and opt-out, priority queues, caps, provider failover, retries, dedup
RFC 8058; RFC 9989 (DMARC, May 2026); Netflix RENO case studyEmail Delivery System Design Template
完整Transactional email platform: message classes, per-destination queues, RFC 5321 retries, SPF/DKIM/DMARC, IP warm-up, bounces, one-click unsubscribe
RFC 5321; RFC 6376; RFC 7208; RFC 9989 (DMARC, May 2026); RFC 8058Search Autocomplete System Design Template (Reference Design)
完整Typeahead: trie/FST/edge n-gram index, popularity and recency ranking, query-log pipeline, edge cache, latency budget, safety
RFC 9110; RFC 9111Recommendation System Design Template
完整Recommender funnel: two-tower retrieval and ANN, pre-ranking and ranking, feature freshness, training, exploration, A/B tests, feedback loops and bias
Video Conferencing System Design Template (WebRTC SFU)
完整WebRTC video meetings: mesh vs MCU vs SFU, simulcast layers, bandwidth estimation and layer selection, SFU cascading, raw track recording, SFrame E2EE
W3C WebRTC Recommendation (13 March 2025); RFC 3550; RFC 7667; RFC 8853; RFC 8888; RFC 9605