The difference between C/s structure and b/s structure or its advantages and disadvantages

Source: Internet
Author: User
b/s structure of the so-called "B/S" refers to Browser/server (browser/server), that is, the client is a standard browser (such as the internet Explore,netscape Navigator, etc.), The server side is the standard Web server in conjunction with the application server to respond to browser requests.

b/S mode is a three-layer structure system. The first tier client is the interface between the user and the entire system. The customer's application is streamlined to a generic browser software, such as Netscape Navigator, Microsoft's IE, and so on. The browser translates the HTML code into an illustrated Web page. The Web page also has a certain interactive function, allowing users to enter information submitted to the backend in the application form provided by the Web page, and to make requests for processing. This backstage is the second tier of Web servers. The second tier Web server starts the process to respond to the request and dynamically generates a string of HTML code, which embeds the processing results and returns it to the client's browser. If the client submits a request that includes data access, the Web server also needs to work with the database server to complete the process. The task of the third tier database server is similar to C/S mode, which is responsible for coordinating the SQ request issued by different Web servers and managing the database.
c/S structure

The so-called "C/S" refers to Client/server (client/server). C/S mode is a two-tier system: The first layer is a combination of representation and business logic on the client system; The second layer is a database server that is combined with a network.

First of all, the strong interaction is an inherent advantage of C/s. In C/S, the client has a complete set of applications, in error prompts, online help and other aspects have a powerful function, and can be free to switch between subroutines. Although the B/s by JavaScript, VBScript provides a certain degree of interaction, but with C/s a set of customer applications is too limited.

Secondly, the C/S mode provides a more secure access mode. Because c/S is the paired point-to-point structure model, the security can be guaranteed better by using network protocol (such as NT NetBEUI protocol) which is suitable for LAN and security. and b/s adopts the open structure mode of point-to-point, multiple point to multiple points, and uses TCP/IP as an open protocol for Internet, its security can only be ensured by database of password management on data server. The key security issues in Internet technology are far from being solved, in which encryption and authentication in the process of information transmission is the biggest obstacle to the use of Internet technology in key tasks, which is why the main application of Internet technology is still in the public release information. Modern enterprises need to have an open information environment, need to strengthen contact with the outside world, some also need to develop internet marketing business through the Internet, which enables most enterprises to connect their intranet with the Internet. Because of the adoption of TCP/IP, they must adopt a series of security measures, such as building a firewall, to prevent Internet users of the enterprise's internal information theft and external virus intrusion.
The difference between B/S and C/s

Using C/S mode will reduce network traffic. b/S uses a logical three-tier structure, while the physical network structure is still the original Ethernet or ring network. In this way, the communication between the first layer and the second layer structure, the communication between the second layer and the third layer structure, must occupy the same network line. and C/S only two-tier structure, network traffic only includes client and server traffic between the amount. Therefore, the ability of C/s to handle a large amount of information is unmatched by B/S.

Because c/s in the logical structure than b/s less than one layer, for the same task, C/S completion speed is always faster than B/s. Make C/s more conducive to processing a large number of data.
b/S simplifies the client. Instead of installing different client applications on different clients like C/s mode, it is only necessary to install generic browser software. This will not only save the client's hard disk space and memory, but also make the installation process easier.

b/S is particularly suitable for online information publishing. Due to the poor interactivity of the HTML language, the user interface of the input and output cannot be solved with the pure Internet Technical Specification html/http, because the main application of Internet WWW technology is to publish information rather than input output, "browser" is used for "browsing" rather than terminal input and output. So in order to solve the browser and HTML page interoperability problem, "B/S" version of the software is often used in the client Microsoft Exclusive support of the ActiveX technology, this is actually a browser-initiated client programs.

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.