Caching from First Principles: Policies, LRU, and Cache Tiers
Learn cache reads and writes, invalidation, read-through loading, eviction, and an LRU implementation with operation traces.
Writing ahead of certainty — notes on the things I'm working to understand.
In databases, a write-ahead log records changes before they're applied — so nothing is lost if something goes wrong. This blog works the same way. I'm a software engineer who writes things down before I'm sure I have them right: deep dives into databases, profiling, the layers most code never touches, and the occasional note-to-self that turned into something worth sharing.
A practical guide to cryptography primitives available in every language — hashing, salting, HMAC, AES encryption, and secure random. Know what to use when.
Requests, APIs, and Web Servers · Estimate Capacity, Find Bottlenecks, and Set Useful SLOs · Counters, Base62, Hashes, and Key Pools · Logs, Indexes, and Transactions · Load Balancers, DNS, and CDNs · Policies, LRU, and Cache Tiers · Leaders, Quorums, and CAP · Placement, Movement, and Trade-offs
1NF through 5NF Explained · What to Use When · How Databases Actually Store and Find Your Data · From Binary Trees to Database Indexes · Internals, Types, and Trade-offs · Reading and Understanding Query Plans · Strategies, Real Advantages, and Pitfalls · Connections, Locks, and MVCC
Intro to Large Language Models · A Deep Dive into How LLMs Are Built · Neural Networks, Transformers, and How LLMs Learn
Learn cache reads and writes, invalidation, read-through loading, eviction, and an LRU implementation with operation traces.
A junior-friendly system design interview cheat sheet: powers of ten, time conversions, QPS, storage, bandwidth, cache load, and collision math.
The machinery the deep dive skipped: how a neural network and the Transformer work, what loss really means, and how reinforcement learning trains a model.
Make Claude, Codex, and Gemini efficient: externalize knowledge into files, turn repetition into commands, skills, and hooks, and stop starting from scratch.