5 ms·
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.
by kaba0 4y 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.
- CSDude 4y agoYou clearly did not deploy enough classes on Lambda to have more than 10 seconds warmup on a trivial Java based Lambda function.
- bitcharmer 4y agoWarm-up is more a function of invocation count rather than time as you seem to be suggesting here
- vips7L 4y agoThe 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.
- imtringued 4y agoThis is why frameworks like Micronaut exist.
- vips7L 4y agoMicronaut, Quarkus, Avaje Inject, CDI Lite. Plenty of solutions if people would stop reaching for Spring.
- deleted 4y ago[deleted]