Hacker News new | ask | show | jobs
by kaba0 1391 days ago
The JVM can start up in less than 0.1 seconds. Depending on the amount of classes being loaded it is not an issue even for lambda and k8s jobs.
2 comments

The VM starts up plenty fast. The slow part is when people use reflective dependency injection containers that take seconds to scan the class path before before executing.
This is why frameworks like Micronaut exist.
Micronaut, Quarkus, Avaje Inject, CDI Lite. Plenty of solutions if people would stop reaching for Spring.
You clearly did not deploy enough classes on Lambda to have more than 10 seconds warmup on a trivial Java based Lambda function.
Warm-up is more a function of invocation count rather than time as you seem to be suggesting here