Are your Java cloud functions too slow? What if they could start in milliseconds instead of seconds? And use less memory to boot?
This is not a dream, but by changing the way we compile our Java functions we can significantly reduce memory usage while also drastically improving startup performance.
Java has never been a perfect fit for Function as a Service platforms such as AWS Lambda or Azure Functions. While both platforms have official support for Java, Java functions unfortunately suffer from significantly longer cold start times than many other runtimes.
In this episode we talk through a simple Spring Cloud Java function running on AWS Lambda with fairly horrible cold start times of around 6 seconds and then compare a few different approaches for significantly improving it. Eventually ending up with a cold start time of just 100 milliseconds - making Java a viable, though not without drawbacks, choice for FaaS platforms.
Comments (0)
To leave or reply to comments, please download free Podbean or
No Comments
To leave or reply to comments,
please download free Podbean App.