Switch to GraalVM — is worth it?
The initial setup I have a serverless container built with Java and Micronaut framework. It has one HTTPS endpoint for calculating the loan amortization schedule. When there are no requests — the container is down and no resources are consumed. When the request comes the container is initialized. It takes time to start the application, and JVM is not warmed up. These kinds of things really impact the request latency. Take a look at the screenshot of the dashboard: As you can see the request latency is 5-10 seconds. This is a very long time to wait for a user. I've been considering different ways to improve this situation — from migrating to a VM instance that will be up all the time, so there will be no time spent to start a container for every request, to switching to another technology. But since the service is not used much it is a bit overkill to keep the service up all the time. I wanted to save the serverless setup. Trying GraalVM One of the sol...