Exactly, this is great for serverless. I plan to create a few microservices for personal use that will only have one user - me. Regular spring with a startup time of 5-10 seconds and ram usage of 300-500 mb will require me to purchase a VPS, which is overkill for something that's going to be used by a single user. With spring native I would be able to run them on AWS lambda for practically free.
I'm curious—are your Java lambdas REST endpoints? I've written a couple of lambdas for work that weren't API endpoints and I just used vanilla Java for them—no framework startup times, just the normal lambda cold start penalty
1
u/Indie_Dev Mar 13 '21
Exactly, this is great for serverless. I plan to create a few microservices for personal use that will only have one user - me. Regular spring with a startup time of 5-10 seconds and ram usage of 300-500 mb will require me to purchase a VPS, which is overkill for something that's going to be used by a single user. With spring native I would be able to run them on AWS lambda for practically free.