C/S architecture concept and its characteristics and advantages

Foreword:

1. Concept and basic characteristics of C/S architecture

2. Advantages and disadvantages of C/S architecture

3. What is B/S architecture?

4. Differences from B/S

5. Advantages and advantages of B/S architecture

I hope some of the questions mentioned in today’s article will be helpful to everyone.

      I have a beautiful heart and a good personality. Paying attention to me is like finding a treasure~~~

1. What is C/S architecture?

1. The meaning of C/S architecture:  

 The C/S architecture is a (Client/Server) architecture in which the client relies on the server to obtain resources.
The client is the PC or workstation where the user runs the application, and the C/S architecture reduces network traffic by providing query responses instead of total file transfers. It allows multiple users to update to a shared database through a GUI front-end. Communication between clients and servers generally uses remote calls (RPC) or standard query language (SQL) statements.

2. Basic characteristics of C/S architecture:

(1) The client process contains solution-specific logic and provides the interface between the user and the rest of the application system. Server processes act as software engines that manage shared resources such as databases, printers, modems, or high-performance processors.

(2) Front-end tasks and back-end tasks have fundamentally different requirements for computing resources, such as processor speed, memory, disk speed and capacity, and input/output devices.

(3) The hardware platforms and operating systems of the client and server are usually different. Client and server processes communicate through a well-defined set of standard application programming interfaces (APIs) and RPCs.

(4) An important feature of C/S architecture is scalability , they can be scaled horizontally or vertically. Horizontal scaling means adding or removing clients and workstations with only a slight impact on performance. Vertical scaling means moving to a larger and faster server computer or multiple servers.

3. The types of C/S architecture
are: one-tier architecture, two-tier architecture, and three-tier architecture.

Two-tier architecture:

    The user interface is stored on the client machine and the database is stored on the server.

Three-tier architecture:
    In the three-tier architecture, additional middleware needs to be used, which means that client requests need to enter the server through the middle layer, and the server's response is first received by the middleware and then received by the client. Middleware stores all business logic and data channel logic, middleware increases flexibility and provides optimal performance

 2. Advantages and disadvantages of C/S architecture:

1. Advantages of C/S architecture:

①. The interface and operation of C/S architecture can be very rich;

②. Security performance can be easily guaranteed, and it is not difficult to implement multi-layer authentication;

③. Since there is only one layer of interaction, the response Faster speed;

2. Disadvantages of C/S architecture:

①. Narrow scope of application, usually used in local area networks.

②. The user group is fixed. Since the program requires installation before it can be used, it is not suitable for unknown users.

③ Maintenance costs are high. Once an upgrade occurs, all client programs need to be changed.

3. What is B/S architecture?

    B/S architecture is the browser and server architecture model. With the rise of Internet technology, it is a change or improved architecture to the C/S architecture. Under this architecture, the user work interface is implemented through the WWW browser. A very small part of the transaction logic is implemented on the front end (Browser), but the main transaction logic is implemented on the server side (Server), forming a so-called three-tier structure. This model unifies the client and concentrates the core parts of system function implementation on the server, simplifying the development, maintenance and use of the system. Only a browser (Browser), such as Netscape Navigator or Internet Explorer, is installed on the client computer, and a database such as Oracle, Sybase, Informix or SQL Server is installed on the server . The browser interacts with the database through the Web Server. This greatly simplifies the client computer load, reduces the cost and workload of system maintenance and upgrades, and reduces the user's total cost of ownership (TCO).

4. The difference between C/S architecture and B/S architecture:

Divided into three parts

1. Different networks

B/S architecture: mainly used for external networks and can be accessed through WAN (can also be used for intranets);

C/S architecture: mainly used for intranets, built on a dedicated network (such as a local area network), and accessible in a small range.

2. Different security

B/S architecture: low security, vulnerable to network intrusion by others, because B/S is built on a wide area network, has relatively weak security control capabilities, and is oriented to an unknown user group;

C/S architecture: It has high security. A closed network is not susceptible to network intrusion by others, because C/S generally faces a relatively fixed user group and has strong control over information security.

3. Different conveniences

B/S architecture: high convenience, no need to install a specific client, access through the website;

C/S architecture: Convenience is low and a specific client needs to be installed for access.

 Summary: "C/S architecture: mainly used in intranets, built on a dedicated network (such as a local area network), and accessible in a small range.

 5. Advantages and disadvantages of B/S architecture

1. Advantages of B/S architecture:

①. It has distributed characteristics, and business processing such as query and browsing can be carried out anytime and anywhere;

②. Business expansion is simple and convenient, and server functions can be increased by adding web pages;

③. Maintenance is simple and convenient, only If the web page needs to be changed, synchronous updates for all users can be achieved;

④. Simple development and strong shareability.

2. Disadvantages of the B/S architecture:

①. The B/S architecture is not satisfactory across browsers;

②. It takes a lot of effort to achieve the performance of a C/S program;

③. In terms of speed and security It requires huge design costs, which is the biggest problem of the B/S architecture;

④. The interaction between the client and the server is a request-response mode, and the page needs to be refreshed;
 

Guess you like

Origin blog.csdn.net/weixin_74612079/article/details/131234133