Running Spring in a Serverless Environment
summary
Shows how to run Spring Cloud Function on Azure Functions using the Maven plugin that auto-creates storage, service plan and function and notes Java cold starts of about 6–7 seconds (sometimes 20+s). Demonstrates building a GraalVM native image in GitHub Actions (build ~6–7 minutes), compressing with UPX to a 16 MB binary, and deploying that to get ~100 ms startup in tests. Warns that native images limit Spring features, add build complexity and occasional CI flakiness.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:23Agenda
- 1:44Why Serverless
- 2:13Why Spring
- 7:04Java
- 8:53Sample Application
- 9:25Hello Function
- 10:22Azure API
- 11:50Azure Functions
- 12:33Maven Plugin
- 13:55Deployment
- 17:52Google VM
- 18:30Spring Boot App
- 19:17Inorganic Function
- 20:32Configuration
- 21:11Compile
- 21:30Compress
- 23:27GitHub Actions
- 25:09Build Time
- 27:26Native Image
- 30:42Conclusion
related talks
36mThe fast path to smart serverless with Spring Cloud Function & Azure Functions
55mServerless Spring
51mServerless Spring
41mGoing Serverless With Spring’s Support for GraalVM, Project CraC & More
55mLet’s Get Functional: The Fast Path to Smart Serverless
34mThawing Java on AWS Lambda
44mGoing Serverless with Spring Boot 3
26mGoing Serverless With Spring’s Support for GraalVM, Project CraC & More
