The connection and difference between CS architecture and BS architecture (zero basic understanding)

network programming

First of all, to understand the CS architecture and BS architecture, you need to understand what is network programming?

When everyone first comes into contact with programming, they often write code in the editor of their own computer. To put it simply, the code we wrote before is like a stand-alone game . You can only play it by yourself and cannot experience it online with others.
So. When you want to transfer the calculation results of your own program or your own collection of pictures and videos to your friends, there is no doubt that you need to use the network for transmission, then this is network programming
. Network programming is indispensable in our daily lives. It is everywhere, such as
① online games
② instant messaging
③ financial securities
④ trade interaction
⑤ email sending

There are two software architectures in network programming: C/S architecture and B/S architecture.

CS architecture

CS stands for Client/Server ( such as the desktop application iQiyi downloaded on the computer ). Take iQiyi as an example. The client (that is, your computer) needs to install special client software (iQiyi Art). Servers (iQiyi's own computer room) usually use high-performance PCs, workstations or minicomputers, and use large database systems for data interactive storage.

Insert image description here

BS architecture

BS is the Browser/Server (browser/server) structure, ( such as accessing iQiyi online through a browser ). Under this architecture, the user interface is completely implemented through the browser, and part of the transaction logic is on the front end, but the main transaction logic is on the front end. Server side implementation. The browser interacts with the database through the Web server.

Insert image description here

The difference between CS and BS

1. Requirements for hardware environment
C/S is generally established between local area networks and provides connection and data exchange services through dedicated servers.
B/S is established on a wide area network and generally requires only an operating system and a browser
. 2. Security
C/S has high security . Generally, C/S is suitable for highly confidential information systems. If
B/S is low, there are many users on the network, the load is large, and it is not fixed, so B/S security is low .
3. Software upgrade and maintenance
Each C/S client must be upgraded and maintained.
The B/S client does not need to be installed and maintained.
4. User experience
. Taking games as an example is a good example of user experience. The user experience of C/S architecture is that for games, for example, the picture is clear, the delay is low, the special effects are good, and the game experience is strong. That is because of all these data resources. They are all downloaded to your local machine
and the B/S architecture is like those games played on the browser. They often have one characteristic, that is, the picture quality, special effects, and background music are poor. The fundamental reason is that the games are played on your local computer. If there are no such picture and audio resources, they need to be transmitted through the network . Therefore, if the game pictures are beautifully set up, the resources consumed by the pictures will definitely be large. If the player's network signal is poor, the pictures will not be loaded at all.

Summarize the advantages and disadvantages of C/S architecture and B/S architecture

C/S architecture advantages and disadvantages

1. It is necessary to develop the client and server at the same time.
2. The game screen and other settings are exquisite and the user experience is good.
3. Downloading updates will be a little troublesome
. 4. It is generally aimed at a relatively fixed user group and has high security performance.

Advantages and disadvantages of B/S architecture

1. There is no need to develop a client, only web pages and servers need to be developed.
2. Users do not need to download, just a browser.
3. The application structure is too large, and the user experience is obviously affected
. 4. It is aimed at an unknown user group. Relatively weak control over security

Guess you like

Origin blog.csdn.net/kklovecode/article/details/132706890
Recommended