All Designs

— topics
Logical Designs 10 notes
Distributed Job Scheduler — Design & Internals

How to design a job scheduler that guarantees at-least-once execution across nodes — covering distributed locks, leader election, idempotency, and failure recovery patterns.

Log-Structured Storage — LSM Trees & SSTables

Why sequential writes are faster than random writes, how compaction trades write amplification for read performance, and the durability promise that WAL files make.

NoSQL Database — Logical Design Patterns

Access-pattern-first design for wide-column and document stores — partition key decisions, denormalization tradeoffs, and why schema thinking never left NoSQL.

OAuth2 — Build Your Own Auth Flow

Design an OAuth2 server from scratch — covering authorization code flow, token lifecycle, security boundaries, and failure modes that shallow implementations miss.

Social Network — Feed & Graph Design

How to design a read-optimized social graph at scale — fan-out strategies, celebrity hot partition handling, and why ranking is a product decision as much as a technical one.

SQS-Style Queue — Design & Internals

Building a durable message queue — visibility timeouts, at-least-once delivery, dead-letter queues, and why failure handling is the real design challenge.

Reconciliation System — Design & Internals

How to design a system that detects and resolves discrepancies between data sources — covering idempotent runs, precision vs recall tradeoffs, and correctness-first architecture.

The Architecture of a SQL Database

A mental model — twenty problems from the relational model down to the write-ahead log, and the one tension every layer is fighting.

Designing a Distributed Tracing System

Two stages, fifteen problems — design a distributed tracing system from span propagation through storage and query. Work through each problem before revealing the answer.

The Phoenix Architecture — Intelligent Disaster Recovery

Design a DR system that finds failure before it finds you — active-active topology, intelligent failover, and the tie-breaker decisions that separate resilient systems from merely redundant ones.