Professional knowledge  Professional knowledge
Analysis of the differences and advantages and dis
2022-11-20

It is a software system architecture, through which it can make full use of the advantages of the hardware environment at both ends, reasonably distribute tasks to the client side and the server side, and reduce the communication overhead of the system. So what is the difference between the common C/S architecture and the B/S architecture?

1. C/S architecture

1. Concept

C/S architecture is a typical two-layer architecture, the whole process is Client/Server, that is, the client-server architecture, the client contains one or more programs running on the user's computer, and the server side has two kinds, one is the database server side, the client accesses the data on the server side through the database connection, and the other is the Socket server side, the server-side program communicates with the client's program through the Socket.

The C/S architecture can also be thought of as a thick client architecture. This is because the client needs to implement most of the business logic and interface presentation. In this architecture, the client-side part is under a lot of pressure because the display logic and transaction processing are contained in it, and the data is persisted through interaction with the database (usually an implementation of SQL or stored procedures) to meet the needs of the real project.



2. Advantages and disadvantages

Merit:

2.1 The interface and operation of the C/S architecture can be very rich.
2.2 Security performance can be easily guaranteed, and it is not difficult to achieve multi-layer authentication.
2.3 Since there is only one layer of interaction, the response time is faster.

Shortcoming:

2.4 The application area is narrow, usually used in local area network.
2.5 Fixed user base. Since the program needs to be installed before it can be used, it is not suitable for some unknowable users.
2.6 The maintenance cost is high, and in the event of an upgrade, all client programs need to be changed.

2. B/S architecture
1. Concept

The full name of B/S architecture is Browser/Server, that is, browser/server structure. Browser refers to the web browser, very few transaction logic is implemented on the front end, but the main transaction logic is implemented on the server side, the browser client, the WebApp server side and the DB side constitute the so-called three-layer architecture. The B/S architecture system does not require special installation, only a web browser is sufficient.

In the B/S architecture, the display logic is handed over to the Web browser, and the transaction processing logic is placed on the WebApp, which avoids the huge fat client and reduces the pressure on the client. Because the client contains very little logic, it is also referred to as a thin client.

2. Advantages and disadvantages

Merit:

1) The client does not need to be installed, it can be done with a web browser.
2) The BS architecture can be directly placed on the WAN, and the purpose of multi-customer access can be realized through certain permission control, and the interaction is strong.
3) BS architecture does not need to upgrade multiple clients, but can upgrade the server.

Shortcoming:

1) On cross-browser, the BS architecture is not as good as it could be.
2) It takes a lot of effort to perform to the level of the CS program.
3) The huge design cost in terms of speed and security is the biggest problem with the BS architecture.
4) The client-server interaction is a request-response model that usually requires a page refresh, which is not something that the customer would like to see.


GEFFEN is specialized in processinghigh definition video signals for years. wehave developed and produced a series ofpro video devices, including signalconverter, multi-viewer, optical fiberconverter, signal distribution amplifiersignal generator and matrix switcher, etc.
:Building 3, Baizhong Creative Park, No. 240 Shilian Road, Panyu District, Guangzhou,Guangdong,China
+86 13928186280(Same WeChat/Whatsapp account)
:+86 20-34702140
ADD:Building 3, Baizhong Creative Park, Xinqiao Section, Shilian Road, Panyu District, Guangzhou City   TEL:020-34702140
Geffen Maxtrix Control System Manufactory CN All Rights Reserved 粤ICP备2021023507号