Architecture difference B / S and the C / S

CS = Client - Server = client - server. Example: QQ, Thunder, Nora, STORM, a variety of network games and so on. As long as there is communication and server are counted.

 

 

CS (Client / Server): Client-server architecture ----. C / S structure are mature technically, its main feature is interactive, with secure access mode, network traffic is low, 
fast response, facilitates the handling of large amounts of data. Because the client is responsible for the vast majority of business logic and UI display, also known as fat client. It takes full advantage of hardware at both ends,
assign tasks to both ends of the Client and Server, reducing communication overhead system. C / Software S structure need to develop different versions of software for different operating systems,
coupled with the upgrading of products is very fast, it has been difficult to adapt to a hundred units over the LAN computer users simultaneously. C
/ S architecture is a typical two-tier structure, which comprises one or more client programs running on the user's computer, and the server, there are two,
one is a database server, the client connected to the database accessed by server-side data
and the other is Socket server, the server by a program Socket communication with the client.

 

 

 

BS = Browser - Server = browser - server. Example: All the sites are bs.

 

 

BS (Browser / Server): ---- browser server architecture, is the direction of development of application systems. BS is accompanied by the rise of Internet technology, improvement of C / S architecture, 
in order to distinguish the conventional C / S mode, specifically called B / S mode. In this configuration, the work W3 into the browser interface, business logic implemented in a very small part of the front end (Browser),
the main business logic on the server side (Server), three-layer ( . 3 - Tier) structure. Such that the client computer is greatly simplified load (so called thin client),
reduce system maintenance, upgrade costs, reduces the overall cost of the user (TCO). The main features of the distribution of BS is strong, easy to maintain, develop and share simple and strong, low cost of ownership. But data security issues, the server is too high, the data transmission speed,
personalization features of the software significantly reduced, difficult to achieve specific functional requirements under the traditional model. It is a thin client response to input large amounts of data and reports and so need to interact with the server through a browser
, large communication overhead, and for the realization of complex applications constructed with greater difficulty.

 

2, CS, BS requirements of the hardware environment

(1) C / S users fixed, generally used in LAN, it is required to have the same operating system, even if the corresponding developing different versions for different operating systems, the computer and the computer configuration requirements are also higher.

(2) B / S requires operating system and browser on the line, 与操作系统平台无关(which may be cross-platform), the client computer requires less computer configuration.

3, CS advantages and disadvantages

(1) the advantages of:

  • Can give full play to the client PC processing power, a lot of work can be submitted to the server and then the client process, so fast CS client responsiveness.
  • Beautiful interface, diversity, can fully meet their individual requirements.  
  • Safety performance can easily guarantee, C / S for the general user base is relatively fixed, the program pay more attention to the process, it can be a multi-level verification authority,
  • It provides more secure access mode, a strong ability to control information security. Usually highly confidential information system uses the C / S architecture suitable.

(2) Disadvantages:

  • It requires special client setup, distribution function weak, for over a broad network conditions and do not have user groups, not to achieve rapid deployment to install and configure.
  • Compatibility is poor, for different development tools, has great limitations. If using different tools, you need to rewrite the program.  
  • Development, maintenance costs higher, needs to have certain professional technical staff to complete an upgrade occurs, all clients of the program needs to be changed. .
  • Fixed user base. Because the program needs to be installed before use, and therefore not suitable for the unknown number of users, it is suitable for narrow, typically used in LAN.

4, BS strengths and weaknesses

(1) the advantages of:

  • Distribution and strong, zero client maintenance. As long as there is a network, browser, you can query, browsing and other business processes anytime, anywhere. 
  • Business expansion is simple and convenient, can be increased by increasing the web server functionality.  
  • Easy to maintain, only you need to change the page, you can synchronize updates for all users. 
  • Development of simple, shared and strong.

(2) Disadvantages:

  • Personalized features significantly reduced, functional requirements can not be achieved with a personalized. But with the popularity of html5, this shortcoming more and more weakened. 
  • Client server interaction is a request - response pattern, usually dynamic refresh the page, the response rate was significantly lower (Ajax can solve this problem to some extent). Page display can not be achieved, resulting in greater pressure on database access. 

Summary: CS response speed, strong security, generally used in LANs, but high development and maintenance costs; BS can achieve cross-platform, client zero maintenance, but low personalization capabilities, slow to respond.

 

 

Guess you like

Origin www.cnblogs.com/betterquan/p/11895428.html