My writing.

Java internals, framework quirks, and the occasional Linux command. Explanations and examples for the next time you’re figuring something out.

Articles.

13–18 of 148 articles
bloom-filter, databases, caching, distributed-systems, java

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.

4 views 1 like 2 shares
java, virtual-threads, concurrency, jvm, performance

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.

13 views 1 like 3 shares
inverted-index, search, databases, data-structures, java

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.

7 views 1 like 3 shares
redux, react, state-management, javascript, frontend

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.

12 views 2 likes 1 share
lsm-tree, storage-engines, databases, data-structures, java

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.

9 views 1 like 2 shares
jpa, hibernate, databases, performance, java

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.

17 views 2 likes 1 share