A brief discussion on the difference between C/S vs. B/S

Table of contents

Introduction to C/S:

B/S introduction:

C/SB/S difference:

1. Different hardware environments:

2. Different security requirements:

3. Deal with problems differently:

Summarize:


Introduction to C/S:

C/S: In the Client/Server model, (C/S is the abbreviation of Client/Server. The client needs to install special client software) The client and the server are the two basic components
. The client connects to the server through the network and requests services; the server receives the request and provides services in response to the client's request. This model is widely used in various network applications, such as WeChat, Web applications, email, file sharing, etc.
Client:
The client, also known as the user workstation, is the device used by users to interact with the network. It is usually played by the user's PC. Each client runs in its own operating system environment recognized by the server. Clients mainly enjoy various resources provided on the network through the server.
Server:
a computer or device that provides services. It accepts client requests and provides corresponding services. Servers usually refer to computers or devices that host services such as websites, databases, file sharing, etc. They are responsible for processing client requests, performing corresponding operations, and returning results to the client. Picture illustration
:

B/S introduction:

B/S: In the Client/Server model, (B/S is the abbreviation of Browser/Server. Only one browser is installed on the client) The browser and the server are the two cores of the B/S model
. Component, the browser requests the web application from the server, and the server provides the functions and services of the web application in response to the request. In the B/S model, Web applications are usually implemented through the interaction between the browser and the server.
Browser:
refers to the client software used to access web applications, usually pre-installed applications on computers, mobile phones, tablets and other devices used by users, such as Chrome, Firefox, Safari, etc. The browser connects to the server through the network. Requests a web application from the server and displays the corresponding content in the user's browser window.
Server:
It is a computer or device that provides Web applications and services. In response to client requests, the server can run Web server software, such as Apache, Nginx, etc., receive HTTP requests from the client browser, process the requests and generate HTML, etc. The corresponding content is sent back to the client browser.
Picture indication:

C/SB/S difference:

1. Different hardware environments:

    C/S is generally established on a dedicated network, a small-scale network environment, and special servers are used to provide connection and data exchange services between LANs.
B/S is built on the wide area network and does not need to be a specialized network hardware environment. For example, mobile Internet access, rented equipment, and self-management of information have a stronger adaptability than C/S. Generally, as long as there is an operating system and a browser That’s it.

2. Different security requirements:

C/S is generally oriented to a relatively fixed user group and has strong control over information security. Generally, it is appropriate for highly confidential information systems to adopt a C/S structure, and some public information can be released through B/S.
B/S is built on a wide area network, has relatively weak security control capabilities, and may be oriented to unknown users.

3. Deal with problems differently:

The C/S program can handle a fixed user plane, and in the same area, the security requirements are high and related to the operating system. They should all be the same system. The B/S is
built on the wide area network and faces different user groups and is geographically dispersed. This is What C/S cannot do is minimally related to the operating system platform. Because of this, it is difficult for B/S to interact with local hardware, programs, and files.
For example, it is difficult to control other programs on the local machine, it is difficult to read and write local files, and it is difficult to interact with hardware. Of course, it can be solved with ActiveX technology, such as online banking. The problem with this is that it may be rejected by customers, and only Limited to Windows operating systems.

Summarize:

The C/S architecture requires the installation of applications on the client, while the B/S architecture allows access to Web applications through a browser. C/S architecture is generally more stable and secure because the communication between client and server is direct and the client usually has higher processing power. The B/S architecture is more flexible and scalable because Web applications can be updated and maintained on the server and accessed through the Internet without the need for installation and updates on the client.

Guess you like

Origin blog.csdn.net/weixin_59272777/article/details/132914947