Zeeshan Adil
Book a call
← All writing

Performance

Where the time, the memory and the money go: latency under load, memory layout, capacity planning and cloud cost, measured on real production systems.

ARTICLES

Oct 2026 · 41 min read

From a Pod to the Internet on EKS: veth, VPC Routes, NAT and Egress Cost

Follow an EKS pod packet through a veth pair, VPC routes, gateway and interface endpoints or NAT, with cost examples and GKE comparisons.

Sep 2026 · 29 min read

How Cloudflare Saved 100 TB of Memory: A Deep Dive into Rust Memory Layout

Cloudflare benchmarked a DNS cache entry shrinking from 953 to 420 bytes and reported about 100 TB less fleet memory. Where the bytes went: padding, containers, allocators, pointers.

Sep 2026 · 6.5 hr read

Rust for C# Engineers: From Garbage Collection to Ownership and Lifetimes

A book-length guide to Rust for engineers who already know C#. Fifteen chapters on ownership, borrowing, lifetimes, traits, generics, errors, concurrency, async and unsafe, each one anchored on the .NET model you already carry in your head.

Jun 2026 · 35 min read

Aurora Serverless v2 to Self-Managed PostgreSQL: Sizing, WAL, Recovery

A planning guide for leaving Aurora Serverless v2 for self-managed PostgreSQL: what to measure, how to size the machine, and how WAL and recovery change.

Apr 2026 · 32 min read

Running a 600-Node GKE Spot Fleet: Scaling, Interruptions, and Cost

How a bursty, queue-driven GKE fleet scales to 600+ Spot nodes: KEDA on queue depth, SIGTERM drains, pod IP and quota limits, and cost per job.

Oct 2025 · 15 min read

Diagnosing Slow PostgreSQL Queries with EXPLAIN ANALYZE and BUFFERS

How to find and fix a slow PostgreSQL query: read EXPLAIN (ANALYZE, BUFFERS), check row estimates, then choose indexes, statistics and query shape to match.

Aug 2025 · 7 min read

Deep Work as a Remote Engineer: Time Blocks, Async Habits and Energy

How I protect focused engineering time while working remotely across time zones: time blocks, async batching, an energy-aware schedule and a two-list system.

CONCEPTS

What is consistent hashing?

Consistent hashing places both keys and servers on the same circle of hash values. A key belongs to the first server clockwise from it. When a server joins or leaves, only the keys in the arcs next to it change owner, instead of almost every key as with hash % n.

What is a hot key?

A hot key is a single key that receives a large share of all traffic. Hashing spreads different keys across servers, never one key, so every request for it lands on one server, and adding servers does not help. Fixes are splitting the key, caching reads, or giving it dedicated capacity.

What is request coalescing?

Request coalescing, also called singleflight, makes concurrent callers asking for the same key share one in-flight call instead of each making their own. The first caller runs the work and the rest wait for its result. It turns a burst of identical requests into a single backend query.

What is stale-while-revalidate?

Stale-while-revalidate is a caching strategy that serves a cached response after its freshness time has passed, while a refresh runs in the background. Readers get an instant answer and the next reader gets a fresh one. It stops at a hard limit, after which the old copy is no longer served.

What are virtual nodes?

Virtual nodes (vnodes) give each physical server many positions on a hash ring instead of one. Its share becomes the sum of many small arcs, so load evens out, and when a server leaves, its data spreads over several neighbors instead of landing on one.