On this blog

Posts

A growing collection of notes, ideas, and things I’ve learned along the way.

Where Did My Memory Go? A Practical Look at the JVM Heap and Garbage Collection

A latency incident traced to garbage collection, and everything you need to understand it: how the JVM decides what is garbage, why the heap is split into young and old generations, how to read a GC log, how to find a memory leak with a heap dump, how G1, ZGC and the other collectors differ, and which flags are actually worth touching.

↗

Java Concurrency Without the Headaches

How Java concurrency works, from starting a thread and fixing a race condition to synchronized, volatile, atomics, concurrent collections, executors and CompletableFuture, down to the memory model, lock internals, false sharing, deadlocks, thread pools and virtual threads, explained from the basics up to what senior engineers need to know.

↗

Java I/O and NIO, Demystified

How Java I/O and NIO work, from reading a file and choosing a charset to decorators, Path and Files, buffers, channels, memory-mapped files, selectors, virtual threads and durable writes, explained from the basics up to what senior engineers need to know.

↗

Understanding Java Generics

How Java generics work, from type parameters and wildcards to erasure, heap pollution and API design, explained from the basics up to what senior engineers need to know.

↗

Understanding Java Collections

What the Java Collections Framework is, how List, Set, Map and Queue work under the hood, and how to choose the right one, explained from the basics up.

↗

Understanding p99 latency

What p99 latency means, why averages hide slow requests, and how teams measure and reduce tail latency, explained from the basics up.

↗

Testing behavior, not implementation

Tests that describe observable behavior survive refactoring; tests that mirror the implementation quietly make every change more expensive.

↗