Differences between the C/S and B/S architectures, advantages and disadvantages analysis, architecture _ PHP Tutorial

Source: Internet
Author: User
Tags website server
CS and BS architecture differences, advantages and disadvantages analysis, architecture. CS and BS architecture differences and advantages and disadvantages analysis, Architecture 1, CS Architecture 1, Concept CS architecture is a typical two-layer architecture, the whole process is ClientServer, that is to say, the differences between the client server's C/S and B/S architectures, advantages and disadvantages analysis, architecture

I. C/S architecture

1. concepts

The C/S architecture is a typical two-layer architecture. The entire process is Client/Server, that is, the Client Server architecture, the client contains one or more programs running on the user's computer, and there are two types of servers. one is the database server, and the client accesses the data on the server through the database connection; the other is the Socket server, where the program communicates with the client program through the Socket.

The C/S architecture can also be seen as a fat client architecture. Because the client needs to implement the vast majority of business logic and interface display. In this architecture, the client must bear a lot of pressure, because the display logic and transaction processing are included in it, through the interaction with the database (usually the implementation of SQL or stored procedures) to achieve persistent data, in order to meet the needs of the actual project.

2. Advantages and disadvantages

Advantages:

2.1 The interfaces and operations of the C/S architecture are rich.
2.2 Security performance can be easily guaranteed, and it is not difficult to implement multi-layer authentication.
2.3 as there is only one layer of interaction, the response speed is faster.

Disadvantages:

2.4 narrow application area, usually used in Lan.
2.5 User groups are fixed. Because the program needs to be installed before it can be used, it is not suitable for some unknown users.
2.6 high maintenance costs. in case of an upgrade, all client programs need to be changed.

II. B/S architecture

1. concepts

The B/S architecture is called Browser/Server, that is, the Browser/Server structure. Browser refers to a Web Browser. a very small number of transaction logic are implemented at the front end, but the main transaction logic is implemented at the server end. the Browser client, WebApp server, and DB constitute the so-called three-tier architecture. B/S architecture systems do not require special installation, only Web browsers.

In the B/S architecture, the display logic is handed over to the Web browser, and the transaction processing logic is placed on the WebApp. This avoids the huge fat client and reduces the pressure on the client. Because the client contains few logics, it is also becoming a thin client.

2. Advantages and disadvantages

Advantages:

1) the client does not need to be installed. you can use a Web browser.
2) the BS architecture can be directly deployed on the wide area network. with certain permission control, the BS architecture can achieve multi-customer access with strong interaction.
3) upgrade the BS architecture without upgrading multiple clients.

Disadvantages:

1) the BS architecture is unsatisfactory across browsers.
2) It takes a lot of effort to achieve the performance of the CS program.
3) high design costs are required in terms of speed and security, which is the biggest problem of BS architecture.
4) the interaction between the client and server is in the request-response mode. Usually, the page needs to be refreshed, which is not desired by the customer. (This problem has been mitigated to some extent after Ajax is popular)

III. Improvement and Extension of B/S for C/S

As mentioned above, both C/S and B/S can perform the same business processing, but with the rise of Internet technology, B/S, it is an improved or extended structure for the C/S structure. Compared with C/S, B/S has the following advantages:

1. Distribution: you can query and browse services at any time.

2. convenient business expansion: server functions can be added when web pages are added.

3. easy maintenance: you can change the web page to synchronize updates for all users.

4. simple development, strong sharing, and low cost. data can be stored permanently on the cloud without worrying about data loss.

IV. mainstream Web Application Platforms

A dynamic website server platform must include at least the operating system, Web server, application service, and database. An excellent website server is determined by many factors, such as personal preferences, deployment costs, and security mechanisms. Currently, three mainstream Web platforms, ASP. NET, JavaEE, and LAMP, have their own advantages and disadvantages to meet different needs and users. The comparison is as follows:

A combination of the three platforms:

ASP. NET: Windows Server + IIS + SQL Server + ASP

JavaEE: UNIX + Tomcat + Oracle + JSP

LAMP: Linux + Apache + MySQL + PHP

Five or three figures tell you how the Web works

1. the server directly requests HTML files without applications and databases

2. servers with applications (such as php)

3. servers with applications and databases


The c/s architecture is different from the B/s architecture.

C/S architecture

The C/S architecture is a typical two-layer architecture. The entire process is Client/Server, that is, the Client Server architecture, the client contains one or more programs running on the user's computer, and there are two types of servers. one is the database server, and the client accesses the data on the server through the database connection; the other is the Socket server, where the program communicates with the client program through the Socket.
The C/S architecture can also be seen as a fat client architecture. Because the client needs to implement the vast majority of business logic and interface display. In this architecture, the client must bear a lot of pressure, because the display logic and transaction processing are included in it, through the interaction with the database (usually the implementation of SQL or stored procedures) to achieve persistent data, in order to meet the needs of the actual project.

Advantages and disadvantages of the C/S architecture

Advantages:
1. the interfaces and operations of the C/S architecture are rich.
2. security performance can be easily guaranteed, and it is not difficult to implement multi-layer authentication.
3. because there is only one layer of interaction, the response speed is faster.

Disadvantages:
1. narrow application area, usually used in Lan.
2. Fixed user groups. Because the program needs to be installed before it can be used, it is not suitable for some unknown users.
3. high maintenance costs. in case of an upgrade, all client programs need to be changed.

B/S architecture

The B/S architecture is called Browser/Server, that is, the Browser/Server structure. Browser refers to a Web Browser. a very small number of transaction logic are implemented at the front end, but the main transaction logic is implemented at the server end. the Browser client, WebApp server, and DB constitute the so-called three-tier architecture. B/S architecture systems do not require special installation, only Web browsers.
In the B/S architecture, the display logic is handed over to the Web browser, and the transaction processing logic is placed on the WebApp. This avoids the huge fat client and reduces the pressure on the client. Because the client contains few logics, it is also becoming a thin client.

Advantages and disadvantages of B/S architecture

Advantages:
1) the client does not need to be installed. you can use a Web browser.
2) the BS architecture can be directly deployed on the wide area network. with certain permission control, the BS architecture can achieve multi-customer access with strong interaction.
3) upgrade the BS architecture without upgrading multiple clients.

Disadvantages:
1) the BS architecture is unsatisfactory across browsers.
2) It takes a lot of effort to achieve the performance of the CS program.
3) high design costs are required in terms of speed and security, which is the biggest problem of BS architecture.
4) the interaction between the client and server is in the request-response mode. Usually, the page needs to be refreshed, which is not desired by the customer. (This problem has been mitigated to some extent after Ajax is popular)

What is the difference between the B/s architecture and the c/s architecture?

Nt/Server) structure, which is a well-known client and Server structure. It is a software system architecture. it can take full advantage of the advantages of both ends of the hardware environment, and assign tasks to the Client and Server, thus reducing the communication overhead of the system. Currently, most application software systems
Because the current software application system is developing towards distributed Web applications, both Web and Client/Server applications can perform the same business processing, different modules of applications share logical components. Therefore, both internal and external users can access new and existing application systems, and new application systems can be extended through the logic in the existing application systems. This is the current development direction of application systems.

Although the traditional C/S architecture adopts an open mode, it is only an open level for system development, in a specific application, either the Client or the Server also requires specific software support. Due to the failure to provide an open environment that users really expect, C/S-structured software needs to develop different versions of software for different operating system Systems. In addition, the product is updated rapidly, it is difficult to adapt to the simultaneous use of LAN users with more than computers. The cost is high and the efficiency is low.

2. what is the B/S structure.

The Browser/Server structure is the Browser and Server structure. It is followed
The rise of Internet technology represents a change or improvement in the C/S structure. In this structure, the user's working interface is implemented through the WWW browser, and a few transaction logics are implemented at the front-end.
(Browser) implementation, but the main transaction logic is implemented on the Server, forming a layer-3 3-tier structure. This greatly simplifies the client computer load, reduces the cost and workload of system maintenance and upgrade, and reduces the overall cost (TCO) of users ).

According to the current technology, the LAN should establish a B/S network structure
And database applications in Internet/Intranet mode, which is relatively easy to grasp and low cost. It is a one-time development in place, which can implement different personnel from different places
Point, access and operate a common database in different access modes (such as LAN, WAN, Internet/Intranet, etc.); it can effectively protect the data platform and manage access permissions, server
The server database is also safe. Especially after the emergence of cross-platform languages such as JAVA, the B/S architecture management software is more convenient, fast and efficient.

Third, manage mainstream software technologies.

The mainstream technology of management software technology is the same as that of management thought. it also experienced three stages of development. First, the interface technology from the DOS character interface of the century to the Windows graphical interface (or graphical user interface GUI), until the Browser interface has three different development periods. Secondly, all computers today
The browser interface is intuitive and easy to use. What's more, the style of any application software based on the browser platform is the same, and the user's requirements for operation training are not high, the software is highly operable and easy to recognize.
Furthermore, the platform architecture has evolved from single-user to file/server (F/S) and client/server (C/S) system and browser/server (B/S) system.

II. Comparison between C/S and B/S

C/S and B/S are two mainstream technologies in today's world development model technical architecture. C/S is a Borland company in the United States.
The earliest R & D, B/S is developed by Microsoft. Currently, these two technologies have been mastered by countries around the world, and many domestic companies develop products using C/S and B/S technologies. Both of these technologies have their own city
Each company said that their management software architecture technology is powerful, advanced, and convenient, and they can cite their own customer groups. a large group of scholars shouted for themselves, the advertisement is everywhere.
The benevolent sees benevolence, and the wise sees wisdom.

1. Advantages and disadvantages of C/S architecture software

(1), ...... the remaining full text>

Objective 1. C/S Architecture 1. Concept C/S architecture is a typical two-layer architecture. The entire process is Client/Server, that is, the Client Server end frame...

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.