Java User Group Gujarat Meetup
Abstract
In Java development, Jugaad gets the feature shipped by Friday—we throw annotations at boilerplate, let ORMs write our SQL, and debug slowness by adding print statements or guessing heap sizes. But when production stalls at 2 AM, Jugaad engineering fails.
This talk contrasts ad-hoc hacks with Java Flight Recorder (JFR). We will look beyond the “free” frictionless download of our favorite libraries and uncover their recurring production bills. Using live, dependency-free JVM benchmarks, we will measure the cold introspection tax of Jackson, the N+1 query explosion of Hibernate, and the invisible maintenance cost of Lombok.
Key Takeaways
- Convenience is a Trade-off, Not a Feature: Reflection, classpath scanning, and lazy fetching aren’t free; they are architectural decisions that require profiling.
- Measure, Don’t Guess: JFR and
async-profilerare already built into OpenJDK. A 10-minute profile beats an hour of Stack Overflow folklore. - The “Dhaba Roti” N+1 Problem: Understand how seemingly benign lazy-loading strategies quietly multiply database latency under load.
- The 5-Question Sanity Checklist: A framework for vetting dependencies before they hit
pom.xml—from CVE history to transitive bloat.