Further management of the system Layered Architecture Model

Source: Internet
Author: User

 

 

MVC is a horizontal division of labor, and a layer-3 architecture is a vertical hierarchy.

In most architecture diagrams, MVC is drawn into a triangle. view is the layer that users can see and operate on (possibly web pages or GUI ), the Controller is the core of processing various operation requests. The model is used to save various data and will affect the Display Results of the view.

The three-tier architecture is usually painted as the upper, lower, and middle layers, with the upper layer being the front end; the middle layer being the business logic; and the bottom layer being the data storage.

From this introduction, the relationship between MVC and the layer-3 architecture does seem to exist. In many simple projects, we can write the business logic in the controller, and the logic for saving data is nothing more than a simple correspondence between the database table and the mode.

However, as the project becomes more and more complex, we find that the business logic is very complicated. writing all the code into the controller is a bad practice. Therefore: we extract key business logic to form an independent business logic layer. In addition, this layer is often called by the Controller in the form of a Service API.

On the other hand, we also find that more and more data is getting bigger and more complex. Simple ORM is not enough. You must write a more independent and general data access layer. At this time, you need to rewrite the original model. For upper-layer applications, the usage remains unchanged.

There are also some important technological developments that have been produced in the front-end field, especially the JS frameworks, CSS, HTML5 and other technologies of the We front-end, which have led to the emergence of a complete "front-end MVC" at the front-end ", or now it's called "front-end mvvm.

This is probably the path of development. If you want to discuss it in detail, there will be too much.

Further management of the system Layered Architecture Model

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.