The AWS Lambda Cold Starts with Java and JavaScript 📎
exports.handler = async (event) => {
return 'hello,js';
};
and Java on Amazon Corretto 11:
public class Greetings{
public String onEvent(Map<String, String> input) {
return "hello, java";
}
}
Both functions were deployed with the default configuration (128 MB RAM, default runtime).
Hint: the performance is similar
The Java AWS Lambda function was deployed with Java CDK with: https://github.com/AdamBien/aws-lambda-cdk-plain.