what is the difference between 3 tier architecture and a mvc ?
Are they same?
Both have 3 layers i.e model, views and controller
what is the difference between 3 tier architecture and a mvc ?
Are they same?
Both have 3 layers i.e model, views and controller
In three tier solution the UI is separated from the business tier to make sure that the UI designer who is concerned with the look and feel is not confused with the heavy programming which is left to the programming professions.
This architecture (three tier) is essential when a large number of people are involved in producing a large application.
first of all, tier is for physical deployment, what you mean maybe layers, and MVC is a framework for the presentation layer, that's all
Comparison with the MVC architecture
Source: http://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture
The main difference between both is:
A three tier architecture is the client tier never communicates directly with the data tier In a Three-tier model all communication must pass through the middle tier
MVC architecture is triangular: the view sends updates to the controller, the controller updates the model, and the view gets updated directly from the model
The main difference between both is: A “tier” in this case can also be referred to as a “layer”. The three tiers, or layers, involved include: A Presentation Layer that sends content to browsers in the form of HTML/JS/CSS. This might leverage frameworks like React, Angular, Ember, Aurora, etc. An Application Layer that uses an application server and processes the business logic for the application. This might be written in C#, Java, C++, Python, Ruby, etc. A Data Layer which is a database management system that provides access to application data. This could be MSSQL, MySQL, Oracle, or PostgreSQL, Mongo, etc.
MVC architecture is triangular: the view sends updates to the controller, the controller updates the model, and the view gets updated directly from the model
Their are similar in a way, like:
But the difference comes from how the tiers communicate with each other: