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.
Phương pháp và mẫu
System Design Document Template
Đầy đủSystem design at scale – requirements, capacity estimates (KaTeX), API, data model, HLD, deep dives, reliability, cost, trade-offs
Database Design Document Template (ERD and Physical Model)
Đầy đủDatabase design: DBMS choice, conceptual, logical and physical models, indexes, partitioning, integrity, security, backup, capacity
Multi-Tenancy Design Template (SaaS)
Đầy đủSaaS tenancy model (silo, pool, bridge), tenant context, data isolation, noisy neighbours, lifecycle, residency, cost per tenant
Event Sourcing and CQRS Design Template
ChuẩnEvent-sourced service design: fit check, event catalogue, versioning and upcasting, store, projections, idempotency, crypto-shredding
Microservice Specification Template (Service Canvas)
ChuẩnService canvas: bounded context, owner, APIs and events, data owned, dependencies, SLOs, scaling, config, deploy, observability
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 AAMobile App Architecture Template
ChuẩnMobile app architecture: native vs cross-platform, MVVM/Clean layers, offline sync, secure storage, auth, privacy, releases, testing
Thiết kế tham chiếu
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
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
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
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
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
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
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
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
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
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