Articles
High Level Design
Overview
🏗️

High Level Design

System design, architecture patterns, scalability, and distributed systems. How to design systems that handle millions of users.

2 Sub-topics15 Articles
📂 Sub-topics
📝 Articles

SSL / TLS Explained

HTTP vs HTTPS, TLS handshake, TLS 1.3, certificates & CAs, symmetric vs asymmetric encryption, AES-256, cipher suites, mTLS, attacks & mitigations, and best practices.

Mar 20, 202625 min read

JWT & Auth

How JSON Web Tokens actually work — structure, signing and verification, auth flows, access and refresh tokens, and the security pitfalls, compiled into one unit.

Aug 27, 202620 min read

Netflix Hollow — Deep Dive

How Netflix Hollow replicates a read-only, in-memory dataset from one producer to many consumers — snapshots, deltas, reverse deltas, ordinal-based columnar storage, producer/consumer lifecycle, and failure modes.

Jun 21, 202635 min read

Dynamo: Amazon's Highly Available Key-value Store

Amazon's 2007 Dynamo paper — a decentralized, highly available key-value store: consistent hashing, vector clocks, sloppy quorums, hinted handoff, Merkle trees, and gossip-based membership.

Jul 11, 202645 min read

Cluster Architecture — Building Up the Ring

Build a Cassandra cluster from one node up — naive partitioning, consistent hashing, virtual nodes (vnodes), replication, and rack-aware placement, derived from first principles.

Jul 10, 202628 min read

Consistency

Tunable consistency in Cassandra — why different operations need different correctness, quorums, R + W > N, read repair, and consistency levels.

Jun 29, 202620 min read

Cassandra Storage Engine Internals

Why Cassandra uses LSM trees instead of B-trees — memtables, SSTables, the commit log, compaction, bloom filters, and the read/write paths.

Jul 12, 202650 min read

How Discord Stores Billions of Messages

How Discord scaled message storage to billions on Cassandra — data modeling, partitioning by bucket, and the operational lessons learned.

Jul 5, 202610 min read

How Discord Stores Trillions of Messages

How Discord moved from Cassandra to ScyllaDB to store trillions of messages — GC pain, hot partitions, and a shard-per-core C++ rewrite.

Jul 8, 202622 min read

Multi-Paxos Deep Dive

How Multi-Paxos elects a stable leader to turn single-value Paxos into an efficient, fault-tolerant log-replication engine for distributed databases.

Jul 30, 202616 min read

Nginx Deep Dive

How NGINX serves hundreds of thousands of concurrent connections on modest hardware with a small pool of event-driven worker processes.

Aug 12, 202628 min read

How Amazon S3 Works — Durability & Scale

How Amazon S3 reaches 11 nines of durability and serves over 1 PB/s by erasure-coding objects into shards spread across millions of cheap drives.

Aug 9, 202617 min read

The October 2025 DynamoDB us-east-1 Outage

How a latent race condition in DynamoDB's automated DNS management emptied the us-east-1 endpoint's DNS record and cascaded into a ~14.5-hour AWS outage.

Oct 20, 20258 min read

Dynamo & Bigtable Inheritance

How Cassandra inherits its cluster mechanics from Amazon Dynamo and its on-disk storage engine from Google Bigtable, replacing vector clocks with last-write-wins.

Jul 20, 20262 min read

Cassandra Data Modeling & Anti-Patterns

Query-first data modeling in Cassandra — hot partitions, partition-size limits, common anti-patterns to avoid, and when not to use Cassandra.

Jul 20, 202621 min read