Serverless Spring
summary
Spring Cloud Function provides a bean-based model where a single Function<String,String> (example: uppercase) becomes an invocable endpoint, and demoed wiring to HTTP and Kafka adapters. Startup measurements: a non-web Spring context starts ~800ms, tiny micro app ~200ms, devtools warm restart ~100ms; AWS Lambda cold starts run multiple seconds and billed ~5,800ms then fall to ~100ms minimum, with memory increases cutting cold-start time. A Kubernetes demo builds a Docker image, deploys project riff with Kafka routing, and the riff publish returns the expected response using spring cloud function.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:16What is Serverless
- 8:00Service Platforms
- 12:57Initializer
- 21:43Cloud Functions
- 29:02Spring Cloud Function
- 32:42Publisher
- 33:09Architecture
- 34:42Programming Model
- 36:15RIF
- 38:27Deployment Service Pod
- 46:10Conclusion
related talks
55mServerless Spring
52mServerless Java with Spring
55mThe Road to Serverless: Functions as Applications
36mRunning Spring in a Serverless Environment
47mScale your @Controller to zero with AWS Lambda or Azure Function
55mSpring, Functions, Serverless and You
34mThawing Java on AWS Lambda
44mHow to develop, run and optimize Spring Boot 3 application on AWS Lambda
