A simple distinction between several concepts in software development: C/S structure and b/s structure, three-tier structure and two-tier structure, MVC and three-tier architecture

Source: Internet
Author: User

c/s--client/ server, simply speaking, the client computer needs to install proprietary software to communicate more servers, just like QQ. Mainly through the mechanism of the message to pass (of course, can also write their own protocol, the game is done.) )

b/s--Browser/service side , you can communicate with the server as long as you have a browser, no need to install a dedicated client, communication protocol using the HTTP protocol ... Like WEBQQ.

C/S,B/S said is the system structure, so we usually should say C/s structure, b/s structure

MVC-model, view, controller controler, is a design pattern, can also be understood as a software design idea. It is mainly used to separate the view layer and the business logic layer, and the controller mainly plays the part of separation.

three-layer/two-tier structure , this is the client/server mode and Application Server mode.

Client/server mode because the client layer, the server layer, so Yue two layers, but the server layer contains the application layer and the database service layer (understood as a server at the same time provide application services and database services), most of the C/s structure.

Application Server mode is the same, browser layer, Application server layer, the database server layer, so Yue three layer (the client/server mode of the server split into two servers to use.) ), most of which is B/s structure

There is also a situation of the three layer, is the software architecture of the three layer: user interface Layer UI, business logic layer BLL, data access layer DAL.

It is a software architecture method to be different from MVC, it is more inclined to specific implementation, and MVC is more inclined to software thinking aspects

It is possible to use the idea of MVC to separate the UI layer from the business logic layer using a three-tier architecture. Like what:

User interface layer ui--corresponding--view

Business Logic Layer + data access Layer--corresponding--model

Controler is used to make view and model separate, that is, view and model can not communicate directly

If you use AJAX for Web development, you can think of XMLHTTP objects in Ajax as Controler.

Related Article

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.