Spring Cloud Functions introduce Spring capabilities like auto-configuration, dependency injection, metrics etc. but they feel quite heavyweight compared to a plain AWS lambda function in Java.
The startup time is much longer etc. So, I was curious whether the idea was to have more than one function provided by a Spring Boot application with Spring Cloud Functions contained within it, or whether they should be one function per application?
Two example projects to demostrate the difference in start up time: - https://github.com/marcthomas2013/simple-aws-spring-cloud-function - https://github.com/marcthomas2013/simple-aws-lambda
Deploying both of these projects each as AWS Lambda functions and leaving the environment details (memory etc) the same apart from the timeout for the Spring Cloud Function needs to be increased to 30-45 seconds.