There are two approaches to “deploying” Java Lambda:
- create a "fat" jar, including all (unpackaged) dependencies, for example. using the maven-shade plugin
- create a zip file containing my code and lib directory with all the dependencies as jar files.
Since it takes a very long time until the environment that runs our simple Lambda is “loaded” (20-30 seconds), I wonder if any approach is “faster” than the other, or can it accelerate?
source
share