Java
3 engineering logs on Java. Newest first.
- Your p99 is a garbage collector setting
Why a tail latency that no profiler explains is usually a stop the world pause, why allocation rate matters more than heap size, and why a bigger heap can make the tail worse.
- Deadlocks are a lock ordering bug, and lock ordering is a design decision
Why two transactions doing the same thing in a different order will eventually stop forever, why the database picking a victim is the good outcome, and why sorting your identifiers before you touch them removes an entire class of incident.
- Implementing LFU Cache in O(1) Time: A Hands-on Breakdown
LFU evicts the least popular key, not the oldest. The O(1) version needs two hash maps and linked lists per frequency bucket.