$ sudo explain --topic anything
The why behind the tech, explained clearly.
Sudo Explain is an engineer's notebook on core concepts, system design and production failures, written to answer the questions that tripped me up.
Latest writingAll posts →
-
11 min read
Java thread dump: find the lock owner of BLOCKED threads
How to read a Java thread dump: what RUNNABLE, BLOCKED and WAITING mean, how to follow a lock to its owner, and a real editor freeze as an example.
-
13 min read
LLM hallucinations: diagnose and fix them in production
Why an AI assistant states wrong facts with confidence, how to find where a wrong answer came from, and the fixes production teams use.
-
12 min read
LLM token cost: why bills explode and how to cap them
Why an AI feature costs ten times the estimate, how growing history, big prompts and loops multiply tokens, and how to find and cap the spend.
-
11 min read
Unbounded thread pool queue: how it hides overload
Why a thread pool with a fixed size still crashes under a traffic spike, how a hidden queue grows, and how to make overload fail fast instead.
-
11 min read
Race condition in Java: check-then-act explained
Why code that looks correct loses updates or creates duplicates under load, how to reproduce a race condition, and how to fix it on one server and across many.