Tuesday, July 14, 2026

System Design Interview : 7 Trade-off for higher level

 

  1. Clarify the goal & success metrics Users, workload mix (read/write %, real‑time vs. async), target geos, SLIs (P50/P99, availability), cost guardrails.

  2. Constraints & back‑of‑the‑envelope Requests/sec, data size/day, retention, peak factors; call out assumptions explicitly.

  3. API & data model (v0) Public API (request/response), core entities, access patterns → drive storage choice.

  4. High‑level architecture Client → Edge (CDN/WAF) → Gateway → Services → Datastores → Async (queue/stream) → Analytics → Admin.

  5. Deep dives & trade‑offs

    • Storage: SQL vs NoSQL; sharding keys; secondary indexes.
    • Caching: CDN/edge, read‑through/write‑through, TTLs, eviction, stampede protection.
    • Consistency: Quorum math (R+W > N), read‑your‑writes strategies.
    • Scalability: Stateless services, idempotent handlers, bulkheads, circuit breakers, retries with jitter.
    • Search/Feeds: Inverted indexes, fan‑out vs fan‑in, push vs pull, precompute vs on‑read.
    • Streaming: Exactly‑once semantics (effectively‑once), DLQs, replays.
    • Security/Privacy: AuthN/Z, PII segregation, KMS, audit logs, GDPR/retention.
    • Operability: SLIs/SLOs, dashboards, alerting, runbooks, chaos drills.
  6. Bottlenecks & failure modes Single shard hot‑keys, thundering herds, split‑brain, cascading retries, slow consumers. Offer mitigations.

  7. Evolution plan Phased rollout, A/B & feature flags, multi‑region strategy, cost projection, what you’d do with ×10 traffic.




https://www.designgurus.io/blog/whats-the-best-way-to-prepare-for-faang-interviews-in-2025

No comments:

Post a Comment

System Design Interview : 7 Trade-off for higher level

  Clarify the goal & success metrics Users, workload mix (read/write %, real‑time vs. async), target geos, SLIs (P50/P99, availability)...