Skip to content
Complete Guide

System Design & Distributed Systems: The Complete Guide

Consensus algorithms, caching strategies, database internals, networking protocols, and architecture patterns for large-scale systems.

17 Articles
255 min total read time
1

Networking & Protocols

How data moves across the wire — from TCP/UDP to HTTP evolution and DNS.

2

Data Infrastructure

Database internals, indexing, caching, and migrations at scale.

3

Distributed Systems Patterns

Consensus, rate limiting, messaging, idempotency, and microservice architecture.

10
14 min read•Hard

Understanding Raft Consensus: The Algorithm That Keeps Your Database Honest

How Raft works in production: leader election, log replication, safety guarantees, and failure modes in etcd and CockroachDB.

11
16 min read•Medium

Consistent Hashing: The Algorithm Behind Scalable Distributed Systems

Adding one cache server shouldn't invalidate every key. Consistent hashing with virtual nodes and bounded loads — full Go and Java implementations.

12
15 min read•Medium

Rate Limiter Algorithms: Token Bucket vs Sliding Window

Five rate limiting algorithms, their trade-offs, how to distribute them across a fleet, and client-side backoff that works.

13
14 min read•Hard

Distributed Rate Limiting at Scale: The Probabilistic Drop Architecture

Probabilistic drop rate limiting: uncoordinated enforcement that takes Redis off the request path, with no coordination per request.

14
16 min read•Medium

Idempotency Patterns: Building Retry-Safe Distributed Systems

Why exactly-once is a myth, and how idempotency keys, database constraints, and the outbox pattern make retries safe in Go and Java.

15
17 min read•Hard

Kafka vs RabbitMQ vs NATS vs SQS: Choosing the Right Message Broker

Kafka vs RabbitMQ vs NATS vs SQS: delivery semantics, ordering, throughput, ops complexity, and a decision framework with Go code.

16
14 min read•Hard

Microservices Architecture: From Monolith to Production-Ready Services

When to decompose a monolith, how to define boundaries, and the patterns that work: API gateways, sagas, and event-driven comms.

17
14 min read•Hard

REST vs gRPC vs GraphQL: A Production Decision Guide

REST, gRPC, and GraphQL solve different client problems. A decision guide for when each one wins, and what running all three side by side costs.