The difference and advantages and disadvantages of C/s and b/s architecture

Source: Internet
Author: User

The concept of C/s architecture

The C/S is client/server, a client/server-side architecture, a typical two-tier architecture.

The client contains one or more programs that run on the user's computer

The server side has two kinds, one is the database server side, the client accesses the server side data through the database connection, the other is the socket server side, the server side program communicates with the client's program through the socket.

c/s can be seen as a rich client architecture

Because the client needs to implement the vast majority of business logic and interface presentation. Once an upgrade occurs, all client programs need to be changed.

By interacting with the database (typically an implementation of SQL or stored procedures), the persisted data is met to meet the needs of the actual project.

c/S advantages and disadvantages

Advantages: (1) interface and operation can be very rich (2) security can be easily guaranteed, to achieve multi-layer authentication is not difficult (3) because there is only one layer of interaction, so the response is faster.

Disadvantages: (1) narrow application surface, usually used in LAN

(2) Fixed user group. Because an upgrade occurs, all client programs need to be changed.

The concept of B/s architecture

b/S is browser/server, IE browser/server architecture.

Browser refers to a Web browser, a very small number of transaction logic in the front-end implementation, but the main transaction logic on the server-side implementation, browser client,WebApp server-side and DB-side constitute the so-called three-tier architecture.

b/S architecture system without special installation, only the Web browser can.

b/s can be seen as a thin client architecture

b/S architecture, the display logic to the Web browser, transaction logic on the WebApp, so as to avoid the huge fat client, reducing the pressure on the client. Because the client contains very little logic, it is also becoming a thin client.

c/S advantages and disadvantages

Advantages: (1) The client does not need to install, there is a Web browser can (2) BS architecture can be placed directly on the WAN, through a certain degree of access control to achieve the purpose of multi-client access, interactivity is strong.
(3)The BS architecture does not need to upgrade multiple clients to upgrade the server.

Cons: (1) on cross-browser, the BS architecture is not satisfactory. (2) It takes a lot of effort to achieve the degree of CS program.
(3) The high cost of design for speed and security is the biggest problem in the BS architecture.
(4) C and S interaction is a request-response pattern, which usually requires a refresh of the page, which is not a customer's pleasure to see. (This problem has been eased somewhat after Ajax popularity)

Reference documents:

  Script House c/s and/b two architecture differences and advantages and disadvantages analysis

  The main difference between b/S and C/s

The difference and advantages and disadvantages of C/s and b/s 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.