Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java spring based webapp vs pure javascript webapp [closed]

I have two options infront of me for web development.

Can you guys share your views on which projects suits for each of the paths:

path 1: java + spring on server side and javascript/html on front end.

path 2: pure javascript/Html based webapp.

Below is my project basic functionality. Can you guys share your views on which path is better and why.

The basic functionality of the app is when user enters some data in the app i will hit 4 or 5 web services and get json data back and display on front end.

I want to mention that hitting the webservices is not straight forward. I need to do some complex normalizations before calling the webservices and i also have to do some preprocessing on json before sending it to front end. Soon or latter i believe we have to save user preferences in the app.

Now my question which technology to use. Given the above specifications is it good to go with java and spring on server side and HTML + javascript on front end or pure Javascript/HTML based webapp.

I am looking for inputs like preformance comparisions, code maintainence constraints etc. Also if the answer is javacript/html then please let me know if any libraries like bootstrap or other mvc that is better for this case.

Thanks

like image 205
javaMan Avatar asked May 15 '26 12:05

javaMan


2 Answers

If this project is small with small data, than use what you know better, don't care the technology, because not much importance since is small. Learning a spring or learning javascript isn't an 1h task.

The javascript is easy and everybody knows, easy to find cheap developer. A pure javascript project has no deploy, hosting issues ( most of free hosting server doesn't allow Java)

if you go to server side + client side: Ofc PHP should be the cheapest solution for developing and hosting, not java based technologies. Again it depends on developer knowledge.

If you go with any Java based MVC solution like, Spring, Struts, GWT is again what you / your developer knows, for me personally is almost the same. Choosing one of this, is like a religion. Endless comparation can be written, choose one, which you are confortable, plenty of code samples.

If the project middle, big size or special needs ( banking stuff) than no PHP, just Java, or ASP.net + C# s the way I would go.

Depends on buget allocated: pure javascript should be cheaper.

I'd advice you to use Spring 3 MVC. This will provide you nice MVC structure, so any further changes in model/view/controller will be independent on the rest of your solution. The next thing is, that you can easily integrate any other framework and technologie (e.g. hibernate), that will ease your work and speed up the development. And last but not least - if the user can't see the logic, that's behind his webpage and get's only formated html, because all the logic is in the controller on the server side, your app will be much more secured..

like image 38
Martin Dvoracek Avatar answered May 18 '26 00:05

Martin Dvoracek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!