Difference: 1. The c/s architecture is mainly used in the local area network, while the b/s architecture is mainly used in the wide area network; 2. The c/s architecture is generally oriented to a relatively fixed user group and controls information security. The capability is very strong, but the b/s architecture has relatively weak security control capabilities; 3. The maintenance and upgrade of the B/S architecture is relatively simple, while the maintenance and upgrade of the C/S architecture is relatively difficult.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
C/S: The full name is Client/Server, which is a client/server architecture. Mainly used in local area networks. It is a typical two-tier architecture. Client: user program (presentation layer) Server: one is the database server and the other is the Socket server. (Database layer)
B/S architecture: Full name: Browser/Server (browser/server), mainly used in wide area networks middle. Three layers: Browser client, webapp server and DB (database) side.
Browser client: only simple input and output functions
webapp server: transaction processing, sending requests to the database at the same time
Database: storing a large amount of data
1. Different foundations
C /S is based on the local area network; while, B/S is based on the wide area network.
2. Different hardware environments
C/S is generally established on a dedicated network. In a small-scale network environment, connections between LANs are provided through dedicated servers. and data exchange services.
B/S is built on the wide area network and does not require a special network hardware environment, such as telephone Internet access, rental equipment, and self-management of information. It has a stronger adaptability than C/S. Generally, it only requires an operating system and a browser.
3. Different security requirements
C/S generally faces a relatively fixed user group and has strong control over information security. Generally, highly confidential information systems adopt a C/S structure. Part of the public information can be released through B/S.
B/S is built on the wide area network and has relatively weak security control capabilities. Known user base.
The C/S structure is more secure than the B/S structure because the user group is relatively fixed and the protection of information is stronger; while the B/S structure targets a wide range, so the security is relatively low;
4. Different software reuse
C/S programs inevitably consider integrity, and the reusability of components is not as good as that under B/S requirements.
The multiple structure of the B/S pair requires that the components have relatively independent functions and can be reused relatively well.
5. Different system maintenance
Due to the integrity of the C/S program, it must be inspected as a whole to deal with problems and system upgrades. Upgrading is difficult. It may be necessary to build a brand new system composed of
B/S components, and replace individual components to achieve a seamless upgrade of the system. System maintenance overhead is minimized; users can upgrade by downloading and installing from the Internet.
B/S structure maintenance and upgrade is relatively simple, while C/S structure maintenance and upgrade is relatively difficult.
6. Different system performance
The main logical processing of the B/S structure is on the server, which will put pressure on the server and the performance is not high; while the C/S structure customers The terminal is responsible for part of the logical processing business, and the system performance is high.
7. Different user interfaces
C/S is mostly built on the Window platform, with limited expression methods and generally higher requirements for programmers
B/S is built on the browser and can be used across platforms through WEB services or other public identifiable description languages, making it more flexible to use. It can be applied not only on Window platform, but also on unix/Linux and other platforms.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is the difference between c/s architecture and b/s architecture?. For more information, please follow other related articles on the PHP Chinese website!