Re:Welcome to the New AWS AI Blog
by djhworld on Tuesday February 21, 2017 @07:35AM
(#13695002)
We get around this by using a dependency injection framework (e.g. Guice) and initialising the module statically, so it will only get called once when the JVM loads (i.e. when the Lambda 'warms up') and then inject the dependencies into anything that uses them
For example in one Lambda function, we use Guice to get resources from S3.
For example in one Lambda function, we use Guice to get resources from S3.