Depth understanding of C / S and B / S Model

B / S mode: browser / server, uses a browser / server mode. C / S mode: client / server, using the client / server model.
C / S mode mainly by the client application (Client), the program management server (Server) and middleware (Middleware) three components.
The client application is part of the user interaction with the data system.
Server Manager is responsible for effective management of system resources, such as a management information database, whose main job is when multiple clients concurrently request the same resources on the server, to optimize the management of these resources.
Middleware is responsible for linking client applications and server management program, a work collaboratively to meet the requirements of the user query management data.


B / S mode is a kind of new Web technology-based MIS (Management Information System, Information Management System) Platform mode. The server portion of a conventional C / S mode decomposition data to a server and one or more application servers (Web server), thereby constituting a three-layer structure of the client-server architecture.
  The first layer is the client interface to the user and the overall system. Client applications to streamline a common browser software, such as Firefox and so on. Browser HTML code into the web pages of illustrations, web page also has some interactive features, allowing the user to input the information submitted to the background page on the form provided and proposed processes the request, processes the request and respond background, the background is the second Web server layer.
  The second layer starts the corresponding Web server process in response to the request, and to dynamically generate HTML code string, which is embedded in the result of the processing is returned to the browser client. If the request submitted by the client, including data access, Web servers and database servers need to complete this collaborative process work.
  The third layer of the database server tasks similar to C / S mode, responsible for coordinating the different Web server SQ issued (query) request management database.

A, B / S Mode

  1. Advantages B / S Mode
    First, it simplifies the client. The purpose, as it does not require installation as C / S mode on different clients different customer application, simply install the browser software can be common, so as to achieve without geographical restrictions, distributed widely, as long as the client is able to Internet to complete the action.
    Second, it simplifies the system development and maintenance. System developers no longer need for different levels of users of different design and development of client applications simply put all the functions are implemented on the Web server, and to different functions to set permissions for each user group can be. Each user HTTP request handler calls on different Web servers within the limits, thereby completing the operation to modify or query data.
    With respect to the C / S, Maintenance B / S having greater flexibility. When the situation changes, it no longer upgrade for each existing customer applications, but only for the service handler on the Web server can be revised. If a company has thousands of clients, and distributed in different locations, it will be easy to maintain it is very important.
    Again, it makes the user's operation easier. For C / S mode, the client application has its own specific specifications, users need special training. While the use of B / S mode, the client is a simple-to-use browser software. Whether or decision-making personnel to operate the layers are no training can be used directly.
    Finally, B / S mode is particularly applicable to online information publishing, the traditional function of MIS has been expanded. This is a C / S can not be achieved. And this new online information publishing is just required by modern enterprises. This makes the most of the paperwork companies can be replaced by electronic documents, thus improving the efficiency of enterprises so that enterprises simplify administrative procedures, saving manpower and material and financial resources.
    New and popular B / S mode, and preferred in some ways a vast improvement with respect to the C / S, the B / S became the MIS system platform.
  2. Disadvantages B / S mode
    (1), individual characteristics decreased, can not be achieved with the functional requirements of the individual.
    (2), mouse operation is the most basic mode of operation, unable to meet the requirements of fast operation.
    (3), the dynamic refresh the page, the response speed decreased.
    (4), page display can not be achieved, resulting in greater pressure on database access.
    (5), weakening function is difficult to achieve the specific functional requirements of the traditional model.

Two, C / S mode

  1. Advantages C / S mode
    First, interactive inherent advantages of a C / S. In the C / S, the client a complete set of applications, there are powerful in the error message, online help, etc., and can switch between subprograms. B / S, while providing some interactive capabilities of JavaScript and other scripting languages, but compared with C / S is a set of client application still has some limitations.
    Secondly, C / S mode provides a more secure access mode. Since the C / S is a structural model point pair, using suitable LAN, good security network protocol (e.g.: NT the NetBEUI protocol), security can be better guaranteed. The B / S using multipoint, multipoint to multipoint this open architecture model, and uses TCP / IP used in this kind of open Internet protocol, its security can only rely on the data server to manage passwords database to be guaranteed. Modern companies need to have an open information environment, the need to strengthen links with the outside world, and some also need to develop an online marketing business through the Internet, which makes most businesses their internal network connected to the Internet. As a result of TCP / IP, they must adopt a series of security measures, such as building a firewall to prevent Internet users outside of theft and virus invasion of internal information and so on.
    Again, using the B / S mode will reduce network traffic. B / S using logical three-layer structure, the network structure and physically remains the original ring network or Ethernet. Thus, the communication between the first layer and the second layer structure, the communication between the second and third layers are required to occupy the same configuration network line. And C / S is only two-layer structure, only the network traffic includes traffic between Client and Server. Therefore, the ability of C / S processing large amounts of information are B / S can not match.
    Finally, C / S ratio mode B / S mode faster response. Since the C / S ratio of B / S at least one layer, for the same task, C S completion speed / better than B / S in the logical structure of fast, fast or due to the direct clients connected to the server, no intermediate links, so quick response. So that C / S is more conducive to large amounts of data.
  2. Weaknesses C / S mode
    (1), requires special client setup, distribution function weak, mainly for over a broad network conditions and do not have user groups, not to achieve rapid deployment to install and configure, upgrade and maintenance difficulties.
    (2) poor compatibility of different development tools, has great limitations. If using different tools, you need to rewrite the program.
    (3) high development costs, needs to have certain professional technical staff to complete.

Three, C / S mode and B / S mode combining scheme

The system characteristics of the system according to the analyst, the flexibility to use different MIS system platform for different functions, the use of two parallel cross pattern. First, the developer according to a certain principle, all the sub-functional classification system, which determines the sub-function suitable for C / S, which suitable for B / S.
For the C / S of the sub-function should have the following characteristics:

  • High security requirements;
  • It requires a strong interaction;
  • Use of small, fixed location;
  • It requires processing large amounts of data.

Suitable for B / S subfunction shall have the following characteristics:

  • Using a wide range of locations and flexible;
  • Features change frequently;
  • Security, interactivity is not very high.

Alone with respect to the C / S or B / S, the advantage of this solution is that:
1, to ensure the security of sensitive data, especially for the new record in the database modifications and increased control;
2, cost-effective use of internal computer resources, simplifying the part can simplify the client;
3, both to ensure the complex functions of the interactivity, ease of use and ensures the unity and general functions;
4, system maintenance is simple, rational layout;
5, to achieve efficient utilization of network highest.

Reference: https://www.cnblogs.com/yan1/p/9693762.html
https://wenku.baidu.com/view/e8b0588a312b3169a551a43e.html

Guess you like

Origin www.cnblogs.com/jasonboren/p/12182575.html