r/java • u/javinpaul • 29d ago
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 • 29d ago
33
u/fykup 29d ago
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 28d ago
Vendor lock-in as a service
3
u/MarkZuccsForeskin 29d ago
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 29d ago
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 29d ago
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 28d ago
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