Markdown Editor

系统设计套件

系统设计方法与十个参考设计:聊天、信息流、支付账本、限流器、搜索补全、通知、视频、任务调度、网约车、协同编辑。

第 1 步

方法与模式

  1. System Design Document Template

    完整

    System design at scale – requirements, capacity estimates (KaTeX), API, data model, HLD, deep dives, reliability, cost, trade-offs

  2. Database Design Document Template (ERD and Physical Model)

    完整

    Database design: DBMS choice, conceptual, logical and physical models, indexes, partitioning, integrity, security, backup, capacity

  3. Multi-Tenancy Design Template (SaaS)

    完整

    SaaS tenancy model (silo, pool, bridge), tenant context, data isolation, noisy neighbours, lifecycle, residency, cost per tenant

  4. Event Sourcing and CQRS Design Template

    标准

    Event-sourced service design: fit check, event catalogue, versioning and upcasting, store, projections, idempotency, crypto-shredding

  5. Microservice Specification Template (Service Canvas)

    标准

    Service canvas: bounded context, owner, APIs and events, data owned, dependencies, SLOs, scaling, config, deploy, observability

  6. Frontend Architecture Document Template

    完整

    Web frontend architecture: rendering per route, state, data caching, design system, Core Web Vitals budgets, a11y, i18n, CSP, RUM

    Core Web Vitals (web.dev); WCAG 2.2 AA
  7. Mobile App Architecture Template

    标准

    Mobile app architecture: native vs cross-platform, MVVM/Clean layers, offline sync, secure storage, auth, privacy, releases, testing

第 2 步

参考设计

  1. 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

  2. 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

  3. Payment Ledger System Design Template (Reference Design)

    完整

    Payments and double-entry ledger: idempotency keys, payment state machine, PSPs, outbox, reconciliation, audit, PCI DSS scope

  4. Rate Limiter System Design Template (Reference Design)

    完整

    Distributed rate limiter: token bucket vs window algorithms, atomic Redis scripts, multi-region shares, 429 headers, fail-open

  5. Search 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

  6. 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

  7. 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

  8. Job Scheduler System Design Template (Reference Design)

    完整

    Distributed scheduler: cron, delayed and one-off jobs, leases and visibility timeouts, fencing, idempotent handlers, retries, DLQ

  9. Ride-Hailing Dispatch System Design Template (Reference Design)

    完整

    Ride matching: location ingestion, H3/geohash index, batched matching, ETA, trip state machine, single assignment, surge note

  10. Collaborative Editing System Design Template (Reference Design)

    完整

    Real-time co-editing: OT vs CRDT, sequence CRDT, state-vector sync, presence, offline merge, snapshots and compaction, access