My writing.
Java internals, framework quirks, and the occasional Linux command. Explanations and examples for the next time you’re figuring something out.
Bloom Filters Explained - Bit Arrays, Hashing, False Positives and Membership Queries
A detailed guide to Bloom filters covering membership queries, false-positive probability, sizing, double hashing, Java and Guava implementations, deletion, scalable filters, alternatives, and storage applications.
How Java Virtual Threads Work - Continuations, Carrier Threads, Mounting, Pinning and Scheduling
A detailed look at Java virtual thread internals covering continuations, stack chunks, carriers, the ForkJoinPool scheduler, pinning after JEP 491, and when not to use them.
How Inverted Indexes Work - Postings, Phrase Queries, BM25, Lucene and Full-Text Search
A detailed guide to inverted indexes covering text analysis, postings lists, Boolean and phrase queries, BM25 ranking, segments, compression, distributed search, PostgreSQL GIN, and a Java implementation.
How Redux Works - Store, Actions, Reducers, Middleware, React-Redux and Redux Toolkit
A detailed guide to Redux covering its Flux origins, the three principles, a from-scratch store, combineReducers, middleware internals, thunks, react-redux subscriptions and selectors, Redux Toolkit, RTK Query, and when not to use Redux.
LSM Trees Explained - Memtables, SSTables, Bloom Filters, Compaction and Storage Trade-Offs
A detailed guide to LSM trees covering write-ahead logging, memtables, SSTables, reads, Bloom filters, compaction, tombstones, snapshots, amplification, real systems, and a Java implementation.
The N+1 Problem in JPA and Hibernate - Causes, Detection, Fetch Joins, Entity Graphs and Batch Fetching
A detailed guide to the N+1 query problem covering lazy and eager fetching, SQL detection, fetch joins, entity graphs, batch and subselect fetching, DTO projections, pagination, and Spring Data JPA.