Scale your @Controller to zero with AWS Lambda or Azure Function
summary
Shows that an existing Spring Web @Controller app runs on AWS Lambda or Azure Functions using Spring Boot and Spring Cloud Function with an adapter, requiring no code changes to controllers; demo deploys a sample petstore and an uppercase function via Spring Cloud Function + AWS adapter and API Gateway. Cold starts without optimizations are about ~3.5s, enabling AWS SnapStart cuts that to roughly ~300–350ms for first restore and subsequent requests drop to ~2–3ms, and the deployed endpoints work as expected.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:49What is serverless
- 6:26Providers and event-driven functions
- 7:53Spring Cloud Function model
- 10:41Demo: REST and message handler
- 16:25Challenges of Spring Cloud Function
- 19:40Merging Spring Web with serverless
- 24:24Demo: Deploy to AWS Lambda
- 32:01How Lambda deployment works
- 35:29Scaling with Lambda SnapStart
- 44:52Supported platforms and future
- 46:18Summary
related talks
42mScale Your @Controller to Zero with AWS Lambda or Azure Functions
52mServerless Java with Spring
51mServerless Spring
44mHow to develop, run and optimize Spring Boot 3 application on AWS Lambda
55mServerless Spring
36mRunning Spring in a Serverless Environment
34mThawing Java on AWS Lambda
36mThe fast path to smart serverless with Spring Cloud Function & Azure Functions
