• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need advice Servlet or Spring MVC

 
shivang sarawagi
Ranch Hand
Posts: 157
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have an application in mind which I want to develop. I am targeting the application for a big user base, consider it as
a social app. But I am not
sure whether to write it with Servlets or Spring MVC.
I have a good grip on Servlets, it would be easy for me to develop, but when it comes to Spring I am still novice.
I am not clear what difference would it make if the app is developed on Servlets rather than Spring MVC.
Scalability or some factors like that?

Any advice would be appreciated. Thanks
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess , it is difficult to compare Servlet and Spring MVC.
Also Spring MVC comes with many out of box features which you will have to write on your own in Servlets.
Scalability more depends on choice of App Design (Clustering, Load balancing etc) and Hardware design.

~ abhay

 
David Blaine
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhay Agarwal wrote:I guess , it is difficult to compare Servlet and Spring MVC.
Also Spring MVC comes with many out of box features which you will have to write on your own in Servlets.
Scalability more depends on choice of App Design (Clustering, Load balancing etc) and Hardware design.

~ abhay



What are the these features ? If the OP does not need all or most of those features, then he/she will probably want to use Servlets and JSP instead.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The number of users is not a criteria for choosing any particular technology/framework.
It should always be part of the design. Also as suggested above knowing what you really want is more important than what the framework caters.
 
Prashant Hurria
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would strongly recommed using a MVC framework life Struts,Spring MVC (Spring MVC preferably).It can help you with features like error handling , integrated tag libraries form commonly used tasks , templating , navigation control etc. . You surely can do the same thing writing your own code but do you really want to reinvent the wheel. I would be ok with plain servlets for a small Proof Of Concept , demo application but if it is an application with hundereds of pages you will end up either with duplicated spagetti code or reinventing what the MVC framework already provides you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic