金融科技系统设计套件
设计资金流转系统:支付账本、数字钱包、结算与库存、欺诈检测、Webhook 与预订,并含容量估算、ID、事件溯源与评审。
方法与模式
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)Distributed Unique ID Generator System Design Template
完整UUIDv4 and v7 per RFC 9562, Snowflake 41/10/12 layout, clock skew and backwards clocks, leased worker IDs, index locality, 53-bit JS limit, ticket servers
RFC 9562 (May 2024)Event Sourcing and CQRS Design Template
标准Event-sourced service design: fit check, event catalogue, versioning and upcasting, store, projections, idempotency, crypto-shredding
参考设计
Payment Ledger System Design Template (Reference Design)
完整Payments and double-entry ledger: idempotency keys, payment state machine, PSPs, outbox, reconciliation, audit, PCI DSS scope
Digital Wallet System Design Template
完整Stored-value wallet: double-entry ledger, cross-shard transfer saga vs 2PC vs event sourcing, idempotency, hot accounts, reconciliation, limits and KYC hooks
E-commerce Checkout and Inventory System Design Template
完整Cart, quote boundary for pricing, tax and promotions, stock reservation, oversell prevention, payment handoff, order state machine, flash-sale throttling
Payment Fraud Detection System Design Template
完整Real-time payment fraud scoring: latency budget, streaming features, rules plus ML, review queues, label delay, selection bias, model monitoring
Webhook Delivery System Design Template
完整Outbound webhook platform design: at-least-once delivery, HMAC signing, per-endpoint queues, backoff and circuit breaking, ordering, replay, SSRF protection
Standard Webhooks v1.0.0; OWASP SSRF Prevention Cheat SheetTicket and Hotel Booking System Design Template (Reference Design)
完整Seat and room inventory, holds with TTL, overbooking math, conditional writes, idempotency, payment saga, waiting room, search vs booking paths
验证
System Design Review Checklist and Scoring Rubric Template
完整Design review checklist in 13 areas, evidence-based scoring rubric, weighted score, red flags, findings register, decision record, 45-minute interview rubric
Threat Model Template (STRIDE)
完整STRIDE threat model: scope, DFD with trust boundaries, assets, threats per element, L x I rating, mitigations, risk acceptance
STRIDE