Blog
Ideas and findings
-
Finding bottlenecks in a high-throughput Java service
Most performance work goes wrong before the first change, by guessing. A repeatable order of measurements finds where a Java service really spends its time.
-
How a 4 GB server froze with no OOM kill
This site stopped responding for minutes and the kernel log had nothing to say. The cause was memory, and the clues were in the application logs.
-
Migrating a legacy Java codebase without stopping delivery
A rewrite asks the business to wait and hopes the new system catches up. Moving a Java system in small, reversible steps usually gets there sooner, and features keep shipping.
-
One validation rule, two places: forms in React and Spring
Validation has to live in the browser for speed and on the server for safety, so the rules can drift apart. How the contact form on this site keeps them in step.
-
PostgreSQL vs MySQL: which one for your backend?
Both are mature, free and fast enough for most products. The difference is in how they store data, and it points to a simple rule for choosing.
-
Reading a slow query plan before adding an index
An index is often the right fix for a slow query, and sometimes it's a permanent write cost that changes nothing. Five minutes with the plan tells you which.
-
Reliable IoT data pipelines: duplicates, gaps and device clocks
Field devices lose connectivity, retry at bad moments and have clocks you can't trust. A pipeline stays correct by assuming all of that from the start.
-
Running Java on Kubernetes: probes, limits and graceful shutdown
A Java service that works in Docker can still restart in loops, get throttled or drop requests on Kubernetes. Three groups of settings prevent most of it.
-
Structured logs with Spring Boot, Alloy and Loki
Plain text logs on one server work until you have to search them under pressure. Here is how this site ships JSON logs to Loki, and the label mistake to avoid.
-
The transactional outbox: never lose a notification
Saving data and then sending a message is two operations, and either can fail without the other. How the contact form on this site makes sure a message always reaches me.
-
What a Sprint Lead who still writes code should protect
Leading a sprint while keeping a hand in the code means constant trade-offs. These are the things I think are worth defending, including from yourself.