ML
Topic

Java / Spring

Java & Spring for engineers who ship and maintain it — JVM memory and garbage collection, the IoC container and dependency injection, Spring Boot auto-configuration, the Hibernate persistence context and the N+1 problem, @Transactional pitfalls, and the Java memory model. The mechanisms behind the interview questions.

7 articles · updated regularly

Java / Spring
Jul 06, 20268 min

The Failover That the JVM Slept Through: A DNS Record Nobody Re-Resolved

A database failover completed in under a minute. DNS flipped the endpoint to the new primary's address almost immediately, every other service reconnected, and the incident should have been over. One Java service kept hammering the old, now demoted, host for the better part of an hour. It was not a bug in our code or a slow health check. The JVM had resolved that hostname once at startup and cached the IP address effectively forever.

JavaDNS
Read