• Post Reply Bookmark Topic Watch Topic
  • New Topic

performace of model1  RSS feed

 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Are there any performance or scalability or similar concerns when model1 architecture is used?

2. Will a JSP having no rendering code, only scriplets behave the same as a servlet as a JSP gets compiled in a servlet
OR will there be any difference in their performance?

Regards,
Leena
 
Darren Edwards
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wikipedia can answer the first

In theory the performance of a JSP should be the similar to a servlet doing the same thing. It's common practice to put business logic in a servlet (as coders are best at maintaining code) and presentation logic in JSPs (as web developers are best at maintaining design) - known as Model 2.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is a performance difference, it's negligible.
I would not recommend making the 'Model1 vs Model2' decision based on performance.

As far as scaling..
For CPU scalability, see the above comment.

As far as code maintenance goes. Model1 code is a nightmare to maintain in a mid to large sized app. It's especially true if you grow large enough to benefit from hiring a more specialized work force (web designers for the look and feel, database experts for the back end, and Java developers for the middle tiers).

This is the single most important reason to adopt an MVC (Model2) architecture.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!