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.
The Java Streams API: From First Pipeline to Spliterators and Parallel Execution
How the Java Streams API works, from filter, map and collect to laziness, collectors, primitive streams, the Sink chain, spliterators, parallel streams and gatherers, explained from the basics up to what senior engineers need to know.
Java Lambdas and Functional Interfaces: From Syntax to invokedynamic
How Java lambdas and functional interfaces work, from syntax and method references to capture rules, invokedynamic, allocation and API design, 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.
Designing reliable event-driven systems
A practical starting point for designing event-driven systems that remain understandable and resilient as they grow.
A practical guide to data pipeline reliability
Design data pipelines around observable guarantees, safe retries, and clear recovery paths.
Evaluating retrieval-augmented generation
A useful RAG evaluation separates retrieval quality from answer quality and tests both against real questions.