MVC Data Flow
We studied the high-level architecture flow of MVC Framework. Now let us have a look at how the execution of an MVC application takes place when certain request comes from the client. The diagram below shows the flow:
MVC Flow Diagram
Basic Flow Diagram
Explanation Flow Diagram Steps
- Step 1) The client browser sends request to the MVC Application.
- Step 2) Global.ascx receives this request and performs routing based on the URL of incoming request using the RouteTable, RouteData, UrlRoutingModule and MvcRouteHandler objects.
- Step 3) This routing operation calls the appropriate controller and executes it using the IControllerFactory object and MvcHandler object's Execute method.
- Step 4) The Controller processes the data using Model and invokes the appropriate method using ControllerActionInvoker object
- Step 5) The processed Model is then passed to the View which in turn renders the final output.
Request Flow Diagram
No comments:
Post a Comment