r/java • u/javinpaul • Oct 20 '26
Migrating Java Applications to AWS Serverless: A Practical Guide
https://javarevisited.substack.com/p/migrating-java-applications-to-aws
0
Upvotes
r/java • u/javinpaul • Oct 20 '26
33
u/fykup Oct 20 '26
Migrating a typical Java app to Lambda is a great way to spend more money and get worse latency while fighting the runtime. Or you could just put it on a cheap VPS, keep the warm JVM and connection pools it was designed for, and scale by adding more instances. Turns out that still works.
8
u/vips7L Oct 20 '26
Vendor lock-in as a service
3
u/MarkZuccsForeskin Oct 20 '26
cool article but aws is soooo overpriced these days, especially with the availability of ai, theres not much excuse not to just use a vps
2
u/persicsb Oct 20 '26
Isn't serverless apps deprecated since they have such an overhead overall, that they did not worth it? An Amazon Prime Video engineer had a great example: https://www.infoq.com/news/2023/05/prime-ec2-ecs-saves-costs/
1
u/wickedaze Oct 20 '26
I worked on a project many years ago where management forced us to use lambdas with Java. Forget about using spring or any decent framework. Startup time was insane. Had to keep all the lambdas warm through cloudwatch. Finally I did a poc with a ec2 cluster to show the difference in latency. It was night and day
1
u/gjosifov Oct 21 '26
The sales pitch for this type of compute is only pay when you use it
but there are bugs, like infinite loop bugs
who is going to pay for that ?
Maybe there is an option so you can kill the compute, but given that AWS is the origin story of the dark patterns UI design in , hardly anyone can find it, especially in stressful situations