The code example include storing and retrieving product from the Amazon DynamoDB. I put Amazon API Gateway in front of my Lambdas.
I made all the test for the following use cases:
I tested different impact of the Lambda cold and warm start of the following:
To the explored AWS Lambda Java Runtimes belong:
To the explore frameworks belong :
Clone git repository locally
git clone https://github.com/Vadym79/AWSLambdaJavaSnapStart.git
Compile and package the Java application with Maven from the root (where pom.xml is located) of the project
mvn clean package
Deploy your application with AWS SAM
sam deploy -g
In order not to use AWS Lambda SnapStart comment both lines in the globals's section of the Lambda function.
Globals:
Function:
#ApplyOn: PublishedVersions
In order to user AWS Lambda SnapStart uncomment both lines above. For different Priming optimizations enabling of SnapStart is required
You can read my article series AWS Lambda SnapStart