Two architecture differences and advantages and disadvantages of C/s and b/s, Architecture _php Tutorial

Source: Internet
Author: User
Tags website server

Two structure differences and advantages and disadvantages of C/s and b/s, architecture


I. C/S architecture

1. Concept

C/S architecture is a typical two-tier architecture, the whole process is client/server, that is, the client server-side architecture, the client contains one or more programs running on the user's computer, and the server side has two, one is the database server side, the client through the database connection to access server-side data The other is the socket server side, and the server-side program communicates with the client through the socket.

The C/S architecture can also be seen as a rich client architecture. Because the client needs to implement the vast majority of business logic and interface presentation. In this architecture, the part of the client needs to be under a lot of pressure, as both the display logic and the transaction are included, and the data is persisted by interacting with the database (usually the implementation of SQL or stored procedures) to meet the needs of the actual project.

2. Advantages and Disadvantages

Advantages:

The interface and operation of 2.1 c/S architecture can be very rich.
2.2 Security can be easily guaranteed to achieve multi-level certification is not difficult.
2.3 The response is faster because there is only one layer of interaction.

Disadvantages:

2.4 Applicable surface is narrow, usually used in LAN.
2.5 user base fixed. Because the program needs to be installed to use, it is not suitable for some unknown users.
2.6 High maintenance costs and an upgrade occurs, all client programs need to be changed.

Second, b/s structure

1. Concept

b/S architecture is all called Browser/server, which is the browser/server structure. 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 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.

2. Advantages and Disadvantages

Advantages:

1) The client does not need to be installed and has a Web browser.
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.

Disadvantages:

1) on cross-browser, the BS architecture is not satisfactory.
2) It takes a lot of effort to achieve the level of CS program.
3) The high cost of design for speed and security is the biggest problem with the BS architecture.
4) client-side interaction is a request-response pattern and 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)

The improvement and expansion of C/s

As mentioned above, the C/s and B + can carry out the same business processing, but with the rise of the Internet technology, b/s structure is an improvement or expansion of the structure. The following advantages are provided with respect to C/S,B/S:

1, Distribution: can be at any time to inquire, browse and other business

2, Business expansion convenience: Add Web page can increase server function

3, maintenance is simple and convenient: Change the webpage, can realize all users synchronization update

4, the development is simple, the sharing is strong, the cost is low, the data can persist in the cloud without worrying about the data loss.

Four, the main Web application platform

A dynamic Web server platform must include at least: operating system +web Server + application services + database. A good website server is determined by many factors, such as personal preferences, deployment costs, security mechanisms. And now the mainstream of the three web platforms: ASP. NET, Java EE and lamp each have advantages and disadvantages to meet different needs and users. The three comparisons were as follows:

Three different parts of the platform combination:

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 the application and the database, requests the HTML file directly

2. Server with application (e.g. 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-tier architecture, the whole process is client/server, that is, the client server-side architecture, the client contains one or more programs running on the user's computer, and the server side has two, one is the database server side, the client through the database connection to access server-side data The other is the socket server side, and the server-side program communicates with the client through the socket.
The C/S architecture can also be seen as a rich client architecture. Because the client needs to implement the vast majority of business logic and interface presentation. In this architecture, the part of the client needs to be under a lot of pressure, as both the display logic and the transaction are included, and the data is persisted by interacting with the database (usually the implementation of SQL or stored procedures) to meet the needs of the actual project.

Advantages and disadvantages of C/s architecture

Advantages:
The interface and operation of the 1.C/S architecture can be very rich.
2. Security can be easily ensured, multi-layer certification is not difficult.
3. Because there is only one layer of interaction, the response is faster.

Disadvantages:
1. Narrow application, usually used in LAN.
2. Fixed user group. Because the program needs to be installed to use, it is not suitable for some unknown users.
3. High maintenance costs and an upgrade occurs, all client programs need to be changed.

b/S architecture

b/S architecture is all called Browser/server, which is the browser/server structure. 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 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.

Advantages and disadvantages of B/s architecture

Advantages:
1) The client does not need to be installed and has a Web browser.
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.

Disadvantages:
1) on cross-browser, the BS architecture is not satisfactory.
2) It takes a lot of effort to achieve the level of CS program.
3) The high cost of design for speed and security is the biggest problem with the BS architecture.
4) client-side interaction is a request-response pattern and 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)

b/S structure and C/s structure of the specific difference?

NT/SERVER) structure, known as the client and server architecture. It is a software system architecture, which can make full use of the advantages of both ends of the hardware environment, the task is reasonably distributed to the client side and server side to achieve, reducing the communication overhead of the system. Most application software systems currently
System are client/server form of two-layer structure, because the current software applications are developing to distributed Web applications, both Web and client/server applications can do the same business processing, the application of different modules to share the logical components; Both internal and external users have access to new and existing applications, and new applications can be extended through the logic of existing applications. This is the current application system development direction.

Although the traditional C/S architecture adopts the open mode, it is only the openness of the system development level, and the specific software support is also needed in the specific application either client side or server side. Due to the lack of a user's real expectations of the open environment, C/s structure of software needs for different operating system systems to develop different versions of the software, coupled with the rapid upgrading of products, has been difficult to adapt to hundreds of computers over LAN users at the same time. And the cost is high and the efficiency is low.

Second, what is the B/s structure.

The b/S (BROWSER/SERVER) structure is the browser and server structure. It is with
The rise of Internet technology, a change of C/s structure or an improved structure. In this structure, the user interface is implemented by WWW browser, very few transaction logic in the front
(Browser) Implementation, but the primary 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 effort of system maintenance and upgrade, and reduces the total cost of users (TCO).

With the present technology, the network of B/s structure of LAN should be
Use, and through the Internet/intranet mode database application, relatively easy to grasp, the cost is also low. It is a one-time in-place development that can achieve different people from different ground
Access and operation of a common database with different access methods (such as lan,wan,internet/intranet, etc.), which can effectively protect the data platform and manage access rights,
Database is also secure. In particular, after the emergence of a cross-platform language such as Java, b/s architecture management software is convenient, fast and efficient.

Third, management software mainstream technology.

The mainstream technology of management software technology and management thought, also experienced three period of development. First, the interface technology from the last century DOS character interface to the Windows graphical interface (or GUI), until the browser browser interface three different development period. Second, all of today's computers
Browser interface, not only intuitive and easy to use, but also the main browser-based platform of any application software its style is the same, the user of the operation of training requirements are not high, and the software is highly operational, easy to recognize
In addition, the platform architecture has evolved from the past single user to today's file/server (F/S) system, client/server (c/s) system and browser/server (b/s) system.

Ii. Comparison of c/S and b/s

c/S and b/s are the two main mainstream technologies for the development model technology architecture in the world today. c/S is an American Borland company
The first research and development, b/S is the United States Microsoft Company. At present, these two technologies to be mastered by the countries around the world, domestic companies to C/s and B + + technology to develop a wide range of products. Both of these technologies have a certain market
Market share and customer base, each enterprise said their management software architecture technology powerful, advanced, convenient, can cite their respective customer groups, there is a large group of literati for their own banner, advertising, can
The benevolent see of the beholder.

1. The advantages and disadvantages of C/s architecture software

(1) 、...... Remaining full text >>

http://www.bkjia.com/PHPjc/898288.html www.bkjia.com true http://www.bkjia.com/PHPjc/898288.html techarticle c/S and b two architecture differences and advantages and disadvantages of the analysis, architecture one, c/S Architecture 1, the concept of C/s architecture is a typical two-tier architecture, the whole 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.