Y
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
vips7L
1390 days ago
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.
link
imtringued
1390 days ago
This is why frameworks like Micronaut exist.
link
vips7L
1390 days ago
Micronaut, Quarkus, Avaje Inject, CDI Lite. Plenty of solutions if people would stop reaching for Spring.
link
CSDude
1391 days ago
You clearly did not deploy enough classes on Lambda to have more than 10 seconds warmup on a trivial Java based Lambda function.
link
bitcharmer
1390 days ago
Warm-up is more a function of invocation count rather than time as you seem to be suggesting here
link