r/AskComputerScience • u/lauris652 • Sep 24 '25
Why so few web apps/CRMs are built with Java?
Hello everyone. Ive some experience with Java, I worked at a bank, with payments, and now Im working in other telecommunication industry, where we have PHP stack. So I came up with the question about the Java's possibilities when it comes to writing a web app (for example CRM). One minus I see is that every time you do changes to your Java code, you need to build and compile it. While in PHP, you can just save the changes in the files, and you see the results. How quickly you can create an MVP is basically the same, right? If you are a good programmer, you can use Lombok, autocomplete, and Java's verbosity isnt really stopping you. Can somebody help me better understand, why majority of web apps/CRMs are not really written in Java?
10
u/jeffbell Sep 24 '25
Java is pretty common on the server side.
6
u/nuclear_splines Ph.D Data Science Sep 24 '25
Many prominent web apps are built in Java. Spotify, early Twitter, Cash App, eBay, parts of Google. Some common web building blocks like Elasticsearch are built in Java. Many web apps are also built in Python, or Ruby, or Go, or C#. But there's a lot of cultural momentum and infrastructure built around PHP and Node.js, and they've become predominant server-side web languages. We've been teaching PHP and JavaScript for so long, and there's so much example code, tutorials, documentation, StackOverflow coverage, they're natural choices for many developers.
1
u/0-Gravity-72 Sep 24 '25
Java is used a lot for enterprise web applications and for big websites that has a lot of backend functionality.
But using Java requires servers with a lot of cpu and memory. So for smaller sites other languages and frameworks are less resource intensive (and cheaper to host)
But if you want you can even develop the GUI in Java using GWT or J2CL.
0
u/MartinMystikJonas Sep 24 '25
Big reason is ecosystem. There are tons of great frameworks, libraries, tools, docs, community,... etc around develoomen of webapps in PHP.