Analysis of the differences, advantages and disadvantages of C/S and B/S architectures, architecture_PHP tutorial

WBOY
Release: 2016-07-13 10:16:24
Original
2093 people have browsed it

Analysis of the differences, advantages and disadvantages of C/S and B/S architecture, architecture

1. C/S architecture

1. Concept

C/S architecture is a typical two-layer architecture. The whole process is Client/Server, that is, client-server architecture. The client contains one or more programs running on the user’s computer, and the server There are two types, 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 program through Socket.

C/S architecture can also be regarded as a thick client architecture. Because the client needs to implement most of the business logic and interface display. In this architecture, the client part needs to withstand a lot of pressure, because the display logic and transaction processing are included in it, and persistent data is achieved through interaction with the database (usually the implementation of SQL or stored procedures). Meet the needs of actual projects.

2. Advantages and Disadvantages

Advantages:

2.1 The interface and operation of C/S architecture can be very rich.
2.2 Security performance can be easily ensured, and multi-layer authentication is not difficult to achieve.
2.3 Since there is only one layer of interaction, the response speed is faster.

Disadvantages:

2.4 has a narrow scope of application and is usually used in local area networks.
2.5 User group is fixed. Since the program requires installation before it can be used, it is not suitable for unknown users.
2.6 The maintenance cost is high. If an upgrade occurs, all client programs need to be changed.

2. B/S architecture

1. Concept

The full name of B/S architecture is Browser/Server, which is browser/server structure. Browser refers to the web browser. A very small amount of transaction logic is implemented on the front end, but the main transaction logic is implemented on the server side. The Browser client, WebApp server side and DB side form the so-called three-tier architecture. B/S architecture systems do not require special installation, just a web browser.

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, thus avoiding the huge fat client and reducing the pressure on the client. Because the client contains very little logic, it is also called a thin client.

2. Advantages and Disadvantages

Advantages:

1) There is no need to install the client, just a web browser.
2) The BS architecture can be directly placed on the WAN to achieve multi-client access through certain permission control and is highly interactive.
3) The BS architecture does not require upgrading multiple clients, just upgrade the server.

Disadvantages:

1) On cross-browser basis, the BS architecture is unsatisfactory.
2) It takes a lot of effort to perform to the level of a CS program.
3) Huge design costs are required in terms of speed and security, which is the biggest problem of the BS architecture.
4) Client-server interaction is in request-response mode, which usually requires refreshing the page, which is not what customers are happy to see. (This problem has been alleviated to a certain extent after Ajax became popular)

3. Improvement and extension of B/S to C/S

As mentioned before, both C/S and B/S can perform the same business processing, but with the rise of Internet technology, B/S is an improvement or expansion of the C/S structure. Compared with C/S, B/S has the following advantages:

1. Distribution: You can query, browse and other services at any time

2. Convenient business expansion: adding web pages can increase server functions

3. Maintenance is simple and convenient: changing the web page can achieve simultaneous updates for all users

4. Simple development, strong shareability, low cost, data can be permanently stored in the cloud without worrying about data loss.

4. Mainstream Web application platforms

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

Combination of various parts 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 pictures tell you how the Web works

1. The server does not have an application or database and directly requests HTML files

2. Server with application (such as php)

3. Server with application and database

The difference between c/s architecture and b/s architecture

C/S architecture

C/S architecture is a typical two-layer architecture. The whole process is Client/Server, that is, client-server architecture. The client includes one or more servers on the user's computer. There are two types of server-side programs, 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-side program through Socket.
C/S architecture can also be regarded as a thick client architecture. Because the client needs to implement most of the business logic and interface display. In this architecture, the client part needs to withstand a lot of pressure, because the display logic and transaction processing are included in it, and persistent data is achieved through interaction with the database (usually the implementation of SQL or stored procedures). Meet the needs of actual projects.

Advantages and disadvantages of C/S architecture

Advantages:
1. The interface and operation of C/S architecture can be very rich.
2. Security performance can be easily guaranteed, and it is not difficult to implement multi-layer authentication.
3. Since there is only one layer of interaction, the response speed is faster.

Disadvantages:
1. Narrow application, usually used in local area networks.
2. Fixed user base. Since the program requires installation before it can be used, it is not suitable for unknown users.
3. Maintenance costs are high. Once an upgrade occurs, all client programs need to be changed.

B/S architecture

The full name of B/S architecture is Browser/Server, which is browser/server structure. Browser refers to the web browser. A very small amount of transaction logic is implemented on the front end, but the main transaction logic is implemented on the server side. The Browser client, WebApp server side and DB side form the so-called three-tier architecture. Systems with a B/S architecture do not require special installation, just a web browser.
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, thus avoiding the huge fat client and reducing the pressure on the client. Because the client contains very little logic, it is also called a thin client.

Advantages and disadvantages of B/S architecture

Advantages:
1) The client does not need to be installed, just have a web browser.
2) The BS architecture can be placed directly on the WAN to achieve multi-client access through certain permission control and is highly interactive.
3) The BS architecture does not require upgrading multiple clients, just upgrade the server.

Disadvantages:
1) On cross-browser basis, the BS architecture is not satisfactory.
2) It takes a lot of effort to perform to the level of a CS program.
3) It requires huge design costs in terms of speed and security, which is the biggest problem of BS architecture.
4) Client-server interaction is in request-response mode, which usually requires refreshing the page, which is not what customers are happy to see. (This problem has been alleviated to a certain extent after Ajax became popular)

What are the specific differences between b/s architecture and c/s architecture?

nt/Server) structure, which is the well-known client and server structure. It is a software system architecture that can make full use of the advantages of the hardware environment at both ends and reasonably allocate tasks to the Client and Server sides, reducing the communication overhead of the system. At present, most application software systems
have a two-layer structure in the form of Client/Server. Since current software application systems are 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 applications, and new applications can be extended through the logic in existing applications. This is the current development direction of application systems.

Although the traditional C/S architecture adopts an open model, this is only openness at the system development level. In specific applications, both the client and the server require specific software support. . Because it fails to provide the open environment that users really expect, software with a C/S structure needs to develop different versions of software for different operating systems. In addition, product updates are very fast, and it is difficult to adapt to the simultaneous use of more than a hundred computers on a LAN. . It is also costly and inefficient.

Second, what is the B/S structure.

B/S (Browser/Server) structure is the browser and server structure. It is a change or improved structure to the C/S structure with the rise of
Internet technology. Under this structure, the user work interface is implemented through the WWW browser. A very small part of the transaction logic is implemented on the front end
(Browser), but the main transaction logic is implemented on the server side (Server), forming the so-called three-layer 3- tier structure. This greatly simplifies the client computer load, reduces the cost and workload of system maintenance and upgrades, and reduces the user's total cost of ownership (TCO).

Based on the current technology, establishing a network application with a B/S structure on a local area network
and using a database in Internet/Intranet mode is relatively easy to master and the cost is low. It is a one-time development that enables different personnel to access and operate a common database from different locations and through different access methods (such as LAN, WAN, Internet/Intranet, etc.); it can effectively The data platform and management access are well protected, and the server database is also secure. Especially after the emergence of cross-platform languages ​​​​such as JAVA, B/S architecture management software is even more convenient, fast and efficient.

Third, mainstream technology of management software.

The mainstream technology of management software technology, like management thought, has also gone through three development periods. First of all, interface technology has gone through three different development periods from the DOS character interface in the last century to the Windows graphical interface (or graphical user interface GUI) to the Browser browser interface. Secondly, the
browser interface of all computers today is not only intuitive and easy to use, but more importantly, the style of any application software based on the browser platform is the same. Users do not require high operating training, and the software It is highly operable and easy to identify; in addition, the platform architecture has also developed from a single user in the past to today's file/server (F/S) system, client/server (C/S) system and browser /Server (B/S) system.

2. Comparison between C/S and B/S

C/S and B/S are the two mainstream technologies in the development model technology architecture in the world today. C/S was first developed by the American Borland Company
, and B/S was developed by the American Microsoft Company. At present, these two technologies are mastered by countries around the world, and domestic companies have developed many products using C/S and B/S technologies. Both technologies have their own certain market share and customer base. Each company says that its management software architecture technology is powerful, advanced and convenient. They can cite their respective customer groups and have a large group of literati. The poets are waving flags and shouting for themselves, and advertisements are flying all over the sky. It can be said that benevolence sees benevolence, and wise people see wisdom.

1. Advantages and disadvantages of C/S architecture software

(1),...the rest of the text>>





http://www.bkjia.com/PHPjc/898288.html

www.bkjia.com

truehttp: //www.bkjia.com/PHPjc/898288.htmlTechArticleAnalysis of the differences and advantages and disadvantages of C/S and B/S architectures, architecture 1, C/S architecture 1 , The concept C/S architecture is a typical two-tier architecture, and the whole process is Client/Server, that is, client-server architecture...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!