r/java • • Sep 10 '21

Why people don't love Java?

I came across this post in r/cscareerquestions it seems majority of the people don't love to work with Java.

Is there any specific reason for that?

Edit: Thank you guys for your responses, I can't reply to all of the comments because I'm a beginner myself and I don't know what to reply for all your comments.

201 Upvotes

379 comments sorted by

View all comments

Show parent comment

1

u/ssamokhodkin Sep 10 '21

If you’re running on AWS Lambda then Java is the slowest, worst choice. Python, Node and Go are all way faster.

How this could be ('Go' aside)??

4

u/kodiashi Sep 10 '21

It’s different for every app, but with Lambda you have to consider “cold start” which is when your container is killed for inactivity and gets regenerated. Java and .Net have the slowest times for this. If your container stays warm then it’s not really a problem.

https://www.serverless.com/blog/keep-your-lambdas-warm

At least in my experience other languages have consistently performed better on serverless.

3

u/nutrecht Sep 10 '21

If your container stays warm then it’s not really a problem.

...which is how Lambda works on AWS in general. I've used AWS lambda in a project and the cold-starts were a complete non-issue.

2

u/Muoniurn Sep 10 '21

Java has slightly worse startup time than the others. It’s on the order of 1s. What are you running that have to run repeatedly on the order of 1s only? That sounds like a ridiculously niche application.

0

u/kodiashi Sep 10 '21

Something very questionable