Rahul Sharma: ASP.NET MVC: MVC 3 VS MVC 4 VS MVC 5
Web Applications are programs that are executed on a web server and accessed from a web browser.
Three Layers of a web application:-
- Presentation Layer
- Business Logic Layer
- Data Layer
Consists of the interface through which the users interact with the application.
Business Logic Layer:-
Consists of the components of the application that control the flow of execution and communication between the presentation layer and the data layer.
Consists of the components that expose the application data stored in databases to the business logic layer.
Architecture of a web Application:-
- Single Tier
- Two Tier
- Three Tier
In single tier architecture, all the three layers are integrated together and can be installed on a single computer. If the application needs to be accessed on multiple computers a separate installation required.
In two tier architecture, the three layers are distributed over two tiers, a client and a server. The presentation layer resides on each client computer, the business logic layer resides either on client or on server, and data access layer resides on the server.
Types of two tier architecture:-
1> Fat Client and thin server:-
The architecture in which the business logic layer resides on the client is known as the fat client and thin server.
2> Fat server and thin client:-
The architecture in which the business logic layer resides on the server is known as the fat server and thin client.
Three Tier architecture:-
In three tier architecture, the three layers of the application are placed as three different entities. This architecture is used for those applications in which merging the business logic layer with the presentation layer or the data layer may degrade the performance of the application.
MVC( Model View Controller):-
Refers to a set of classes that describes the data that the applications work with.
Refers to the components that define an application user’s interface
Refers to a set of classes that handle communication from the user and the overall application flow. A controller responds to user input , communicates with the model, and decides the view to render.
Features of ASP.NET MVC:-
MVC has a powerful routing system. Routing is a feature that enables you to develop applications with comprehensible and searchable URLs.
MVC provides a scaffolding feature that provides a quick way to generate the code for commonly used operations in a standardized way.
Convention over Configuration:-
Asp.Net MVC Supports Convention over Configuration, which is a software design paradigm that aims at reducing the number of decisions taken by developers.
Bundling and Minification:-