Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When is Java the right choice for Web-based applications [closed]

I've been doing some research into taking my programming experience and moving into the java programming marketplace, due to a combination of personal interest and local market forces. As you can gather from the title, the vast majority of my experience has been in building web-based sites and applications, and I'd like to move as much of my previous experience as possible.

One thing that I've been unable to find a concrete answer for when should a website or web-based application designer look to going with a Java based solution, over other options currently on the market. What options would Java provide that would have a designer select Java as the basic coding language to base a project upon?

Thank you for any constructive replies that may arrive from this inquiry.

EDIT: I should have included the caveat of if other factors are equal, for example if hardware, software, developer skill in java is up to where they should be for such projects, and so forth.

like image 239
canadiancreed Avatar asked Sep 28 '09 20:09

canadiancreed


People also ask

Why Java is not good for web development?

The main reason is because java apps require much more memory compared to other languages, so it doesn't make sense for a shared hosting provider to spend their valuable RAM running a java site, when they could run 5 php sites in the same place.

Is Java good for web applications?

Java is perfect for developing large web applications too because of its ability to communicate with a large number of systems. Services like peer-web services, database connectivity, and back-end services can also be accessed via Java web development. There are many platforms in Java for web development.

Is Java still relevant 2022?

And the answer to the question, “is java still relevant” is a big yes. Java is still more than worthwhile in 2022. It has massive upcoming prospects, sports an ever-growing user base, is getting timely support from Oracle, and is not going to fade away anytime soon.

Is Java necessary for Web development?

Web developers do not need to learn Java, there are more options that make web development easier such as Python, Node. js, Php, Ruby on Rails, Golang, Kotlin, C#, etc. However, there is no harm in Learning Java for web development especially if you seek to work for big tech companies whose code may be in Java.


2 Answers

The main factor is what your developers are adept in. If you've got a bunch of Java developers, go with Java.

like image 129
Rich Seller Avatar answered Oct 14 '22 15:10

Rich Seller


Consider this also: Java tends to run on app servers where there is a persistent global program running, and separate threads/processes spawn off to service individual requests. However, if the main global VM croaks for some reason, your whole app can go down. The benefit of course is that you get application/system level resources that you can initialize and use continuously across all requests

Other environments like PHP basically tear down and rebuild the entire environment for each request. You can code in application level data persistence using a database, but you don't get it for free. On the other hand, if one php process croaks while processing app data, it won't kill the whole system , as the entire environment is just torn down/rebuilt for the next request.

like image 37
Zak Avatar answered Oct 14 '22 16:10

Zak