SSH----MVC framework pattern and layered architecture

Source: Internet
Author: User

MVC Framework Pattern

The MVC framework model is a model of software design in web development, his full name is (Model-view-controller), is the model-view--controller, a business logic, data control, The interface shows how to organize the code in a separate way, realizing the modular design of the code.

Model, meaning the data models, which encapsulate the processing of the data (the underlying encapsulates the operation of the database)

Controller, which is the control, takes the user input and controls the data to the model module for logical processing.

View, which is the interface, that gets the data that is logically processed from the model module for rendering.

This is our division from the perspective of the entire application, according to several modules of different functions, which can be divided into these three modules m, V, C.

mvc+ Layered Architecture

But we can often hear such a few nouns, "three-tier architecture", "layered architecture", what are these?

Three-tier architecture refers to the interface layer, the business logic layer, the data access layer, from the perspective of the entire application (slightly macroscopic) to divide, the entire program is divided into three layers, if the MVC pattern is combined with a diagram:

By using a layered architecture, we can refine the model layer to two layers: the business logic layer, the data access layer. The advantage of this is that the reusability of the code can be improved greatly, so that the system architecture, the combination of the modules tightly, the coupling degree is low. Lower-level modules open interfaces to higher-level module calls, making the modules tightly integrated.

ssh+mvc+ Layered Architecture

Finally, attach the architecture diagram after using the SSH framework:

SSH----MVC framework pattern and layered architecture

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.