What are C/S architecture and B/S architecture?
C/S (Client/Server) architecture is a client and server structure. CS is also a software system architecture. Through it, we can make full use of the advantages of the hardware environment at both ends, reasonably allocate tasks to the Client and Server, and reduce the communication overhead of the system. 1
B/S, that is, Browser/Server (browser/server) architecture, only installs and maintains one server, and the client uses the browser to run the software.
The difference between C/S architecture and B/S architecture
1. Use protocol
B/S architecture is more often used HTTP protocol, and C/S architecture is more often used WinSocket protocol (TCP, UDP)
2. Development and maintenance costs
The development and maintenance cost of C/S architecture is higher than that of B/ S architecture. Because two sets of programs, client and server, need to be developed, development costs will increase. Because when using the cs structure, different programs need to be developed for different clients, and software installation, debugging, and upgrades need to be performed on all clients.
The B/S architecture is versatile, so the development cost is low; because there is no need to install the client, the client does not need to be upgraded. You only need to upgrade the software version on the server and log in again. .
3. Security
The C/S architecture has high security. The C/S architecture is suitable for systems used by dedicated personnel and can distribute software through strict management.
The B/S architecture has many users, is not fixed, and has low security.
4. Client load
cs client has a large load. The cs client is not only responsible for interacting with users and collecting user information, but also needs to make requests to the server through the network.
bs hands over the transaction processing logic part to the server, and the client is only responsible for display.
The above is the detailed content of What is the difference between bs and cs architecture?. For more information, please follow other related articles on the PHP Chinese website!