• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

diff b/w threetier and mvc

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the diff b/w threetier and mvc Architecture
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
sam ky
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic