posted 2 years ago
LAMP and Java aren't that far off. You could use the J instead of a P and all the rest can work as is.
Java is generally considered faster than PHP, Perl and Python. I don't think that's a big deal though. While there are cases where that matters, in most cases the bottlenecks would be in IO, networking, etc. where the performance would be relatively insignificant.
The advantages Java offers are at scale. Java is far more strict than all of these languages. When you start up this seems like a pain. You need to organize the files in a particular way, name them in a strict way. The compiler complains and the IDE suddenly highlights all these things. Then there's maven and all of that strictness...
These are huge advantages. In a small project you can't tell the difference, but as the project grows the strictness helps you keep things in order. Furthermore, as you start to scale to large production environments the advantages of Java become tremendous. Java's management and observability capabilities are second to none. There's a reason all big companies use it in the backend, I can get sophisticated insights about a running server with performance impact of 5%. Similar visibility into any other stack would be limited. It might be unstable and can significantly impact performance.