Markdown Editor

Bộ mẫu system design

Phương pháp system design kèm mười thiết kế tham chiếu: chat, news feed, sổ cái thanh toán, rate limiter, tìm kiếm, thông báo, video, lập lịch, gọi xe, soạn thảo.

Bước 1

Phương pháp và mẫu

  1. System Design Document Template

    Đầy đủ

    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)

    Đầy đủ

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

  3. Multi-Tenancy Design Template (SaaS)

    Đầy đủ

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

  4. Event Sourcing and CQRS Design Template

    Chuẩn

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

  5. Microservice Specification Template (Service Canvas)

    Chuẩn

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

  6. Frontend Architecture Document Template

    Đầy đủ

    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

    Chuẩn

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

Bước 2

Thiết kế tham chiếu

  1. Chat System Design Template (Reference Design)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

    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)

    Đầy đủ

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