File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diff b/w threetier and mvc

 
raghuram bikkani
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the diff b/w threetier and mvc Architecture
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
MVC framework is used to provide loose binding between Server and client.
Sever side methods can be modifed with out affecting client side code.

we can use MVC irrespective of tiers.
3-Tier Architecture:
Ex: Client-->App/Web-Server--->DatabaseServer.
I think it is clear,

Thnx,
sam
 
Sheetal Kaul
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As you mentioned in the above answer that in MVC we can modify the server side methods without affecting client side code. that means we Cant do this in 3 tier...???

other this is you said we can use MVC irrespective of tier? i was under impression that in 3-tier also we can use irrespective of tier..??

Please explain..


- Sheetal
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use MVC in 3-Tier/n-Tier.
More precisly MVC is used for best approach to integrate Server side and Client side code, where 3-Tier/n-Tier is used to reduce the load of the servers.
If your app server has high load, add some more servers to reduce the load.
For http related requests use webserver.
As the number of servers increases, tire will be increased.
Do not compare MVC and n-Tier, both are different.

is it clear for u?
 
Sheetal Kaul
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yeah i got that, 3tier/n tier is not for integration of server side and client side things, this is just to reduce the load on server ..right??? then what is the difference between MVC -1 and MVC-2 ???
as both (MVC -1 and MVC-2) are used for the same purpose... is MVC-2 related to 3 tier/ n tier??


Please reply
- Sheetal
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is my take on this. Let's say that a well-designed system has three layers: presentation, business logic and data storage. For an MVC architecture, the model is in the business logic layer, and the view and controller are in the presentation layer. MVC does not really address the data storage layer.

So, the layers may have the following (let's say that Struts is used as the MVC implementation).

Presentation
============
HTML
CSS
JSPs
Servlets
Struts files and classes

Business Logic
==============
Business objects
EJBs

Data Storage
============
DAOs
SQL
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another distinction to keep in mind when trolling through books or magazine articles, is that there is a difference between MVC as it is used for desktop GUI applications versus the web variant of MVC. Originally MVC came from the Smalltalk world and was really an extrapolation of the observer pattern. The idea was that changes to the model would cause propagation notifications to be delivered to the view, which was an observer of the model. You can't really do that on the web unless you are using something like Ajax or an Applet, so the view and controller interact a lot more on deciding when to pull data from the model to update the view.
[ January 20, 2006: Message edited by: Reid M. Pinchback ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic