Skip to content
Back to writing

Distributed Systems

Notes and work around distributed systems, partitioning, event-driven architecture, outbox patterns, consistency, and scalable data systems.

Writing

LLM Inference Architecture

How a request moves through a production LLM serving stack: batching, KV cache, prefill and decode, routing, and what happens when a worker dies.

How Can an LLM Have Hundreds of Billions of Parameters Without Using All of Them?

Mixture of Experts routes each token through a few expert blocks, so total capacity and active compute stop being the same number.

Why Are We Changing Cryptography Before Quantum Computers Can Break It?

The hard part of post-quantum cryptography is finding every place cryptography is used, keeping clients compatible, and making the next migration cheaper.

Are We Distributing Systems Too Early?

When a stream of events is small enough that a modular monolith and a database are still the right answer.

How Do You Actually Use a GPU Fully?

GPU sharing, MIG, time slicing, and why allocating a whole GPU is often wasteful for small models.

Log Handling at Scale

Logs become a distributed pipeline at scale: collect, structure, store, search, and retain only what earns its place.

80/20 Of The Week: Route Optimization

Why real routing is more than shortest paths once vehicles, capacity, time windows, and delays enter the picture.

80/20 Of The Week: Locking (Optimistic, Pessimistic, ...)

Why concurrent updates get tricky and how optimistic and pessimistic locking help.

80/20 Of The Week: Caching (Part 2)

How cache-aside, TTLs, invalidation, and stampede protection show up in real systems.

80/20 Of The Week: Caching (Part 1)

Caching as a speed tool, resource saver, and protection mechanism for backend systems.

80/20 Of The Week: Rate Limiting and Backpressure

How rate limiting and backpressure protect systems from overload.

80/20 Of The Week: The Outbox Pattern

How the outbox pattern keeps database updates and event publishing reliable.

80/20 Of The Week: Partitioning and Sharding

The core concepts of horizontal and vertical data splitting, partitioning vs sharding, and sharding strategies.

80/20 Of The Week: Idempotency and Resilience

How to use retries properly and build resilience into your distributed systems with idempotency.

80/20 Of The Week: Event-Driven Architecture (EDA)

Why and when to use Event-Driven Architecture over request-driven systems, and how Kafka and RabbitMQ fit into the picture.

80/20 Of The Week: Docker Compose and Kubernetes

Breaking down Docker Compose and Kubernetes: Imperative vs Declarative management of containerized systems.

80/20 Of The Week: Scalable Distributed Systems

The 80/20 info for big scalable, distributed systems: everything you need to know about load balancers, horizontal scaling, queues, and request coalescing.

Projects

Research