What is C/S and B/S architecture (software development direction)-Intermittent blog

Source: Internet
Author: User

Today, the world's science and technology are developing rapidly, especially the Internet technologies represented by communications, computers, and networks. As the development and application of the computer Internet in various fields such as politics, economy, and life, as well as the rapid popularization of networks and the dependence of the whole society on networks, computer networks have become the economic foundation and lifeblood of the country, as a powerful motive force for social and economic development, it is becoming increasingly important. However, because mainstream technology R & D enterprises and users are constantly discussing the issues of "B/S" and "c/s" technologies, who are superior and inferior, who represent the development of technology trends, and so on, the use of "OA (office)" and "Case Management" software by procuratorates has become confusing. This article will discuss the development and application prospects of the two technologies for reference by peers.

1. What are C/S and B/S?

To understand the development and changes of "C/S" and "B/S" technologies, we must first clarify three issues.

First, what is the C/S structure.

The C/S (Client/Server) structure is a well-known client and server structure. It is a software system architecture. It can take full advantage of the advantages of both ends of the hardware environment, and assign tasks to the client and server, thus reducing the communication overhead of the system. Currently, most application software systems are structured in the form of client/server. As the current software application system is developing towards distributed Web applications, both web applications and client/server applications can perform the same business processing, and different modules share logical components. Therefore, both internal and external users can access new and existing application systems, and new application systems can be extended through the logic in the existing application system. This is the current development direction of application systems.

Although the traditional C/S architecture adopts an open mode, it is only an open level for system development, in a specific application, either the client or the server also requires specific software support. Due to the failure to provide an open environment that users really expect, C/S-structured software needs to develop different versions of software for different operating system systems. In addition, the product is updated rapidly, it is difficult to adapt to the simultaneous use of LAN users with more than computers. The cost is high and the efficiency is low.

2. What is the B/S structure.

The Browser/Server structure is the browser and server structure. With the rise of internet technology, it is a change or improved structure of the C/S structure. In this structure, the user's working interface is implemented through the WWW browser. A few transaction logics are implemented on the browser, but the main transaction logic is implemented on the server, form the so-called three-tier structure. This greatly simplifies the Client Computer load, reduces the cost and workload of system maintenance and upgrade, and reduces the overall cost (TCO) of users ).

According to the current technology, it is relatively easy to grasp and cost relatively low to establish B/S network applications in LAN and use database applications in Internet/Intranet mode. It is a one-time development in place that enables different people to access different methods (such as lan, Wan, Internet/Intranet) from different locations) it can effectively protect the data platform and manage access permissions, and the server database is secure. Especially after the emergence of cross-platform languages such as Java, the B/S architecture management software is more convenient, fast and efficient.

Third, manage mainstream software technologies.

The mainstream technology of management software technology is the same as that of management thought. It also experienced three stages of development. First, the interface technology from the DOS character interface of the century to the Windows graphical interface (or graphical user interface GUI), until the browser interface has three different development periods. Secondly, the browser interfaces of all computers today are not only intuitive and easy to use, but also the style of any application software based on the browser platform is the same, users do not have high requirements for Operation Training, and the software is highly operable and easy to identify. Furthermore, the platform architecture has evolved from single users to today's file/server (F/s) system, Client/Server (C/S) system, and browser/server (B/S) system.

Ii. Comparison between C/S and B/S

C/S and B/S are two mainstream technologies in today's world development model technical architecture. C/s is the first R & D by Borland, and B/S is by Microsoft. Currently, these two technologies have been mastered by countries around the world, and many domestic companies develop products using C/S and B/S technologies. Both of these technologies have their own market share and customer groups. Each company says that their management software architecture technology is powerful, advanced, and convenient, and can cite their own customer groups, there are a large group of scholars and moke shouting for themselves, the advertisement is full of flying, it can be said that the benevolent sees benevolence, the wise sees wisdom.

1. Advantages and Disadvantages of C/S architecture software

(1) The data load on the application server is light.

The simplest C/S architecture consists of two parts: the customer application and the database server program. The two can be called foreground programs and background programs respectively. The machine that runs the database server program, also known as the application server. Once a server program is started, it waits for a response from the client program. The client application runs on the user's computer and corresponds to the database server, which can be called the customer's computer, when you need to perform any operations on the data in the database, the client automatically searches for the server program and sends a request to it. The server program responds to the request according to the predefined rules and returns the result, the data load on the application server is light.

(2) transparent data storage and management functions.

In database applications, data storage and management functions are performed independently by server programs and customer applications. Front-end applications can violate the rules, in addition, different (whether known or unknown) running data is usually not centrally implemented in the server program, such as the visitor's permissions, numbers can be repeated, and customers must have orders. All of these are transparent to end users working on front-end programs. They can do their jobs without having to ask (and usually cannot interfere) The process behind them. In the application of the customer server architecture, the foreground program is not very "small", and all the troubles are handed over to the server and network. Under the C/S system, databases cannot truly become public and professional warehouses, and they are managed independently and specially.

(3) the disadvantage of the C/S architecture is high maintenance costs and high investment.

First, the C/S architecture should be adopted, and an appropriate database platform should be selected to achieve true "unification" of database data, so that the data distributed in two locations can be synchronized completely to the database system for management, however, operators in the two locations must access the same database directly in order to achieve this effectively. If there are some problems that require "real-time" data synchronization, it is necessary to establish real-time communication between the two locations to maintain the online operation of database servers in the two locations. Network Management staff must maintain and manage servers and clients, this requires high investment and complex technical support, high maintenance costs, and a large number of maintenance tasks.

Secondly, the traditional C/S structure software needs to develop different versions of software for different operating system systems. Because the product is updated rapidly, the high cost and low efficiency have not adapted to the work needs. After the emergence of a cross-platform language such as Java, the B/S architecture severely impacted C/S and posed threats and challenges to it.

2. Advantages and Disadvantages of B/S architecture software

(1) Easy maintenance and upgrade methods.

At present, software systems are being improved and upgraded more and more frequently. The B/S architecture products are obviously more convenient. For a slightly larger unit, if the system administrator needs to run back and forth between hundreds or even thousands of computers, the efficiency and workload can be imagined, however, B/S architecture software only needs to manage the server. All clients are only browsers and no maintenance is required. No matter how large a user is, the number of branches does not increase the workload of maintenance and upgrade. All operations only need to be performed on the server. If the operation is performed remotely, you only need to connect the server to the private network for remote maintenance, upgrade, and sharing. Therefore, clients become increasingly "thin", while servers become increasingly "fat" are the mainstream direction of future information development. In the future, software upgrades and maintenance will become easier and easier to use, which significantly saves manpower, material resources, time, and costs for users. Therefore, the ways to maintain and upgrade the revolution are "thin" clients and "fat" servers.

(2) reduce costs and choose more.

As we all know, Windows is almost unified on desktop computers, and browsers have become standard configurations. However, windows is not absolutely dominant in server operating systems. The current trend is that all applications using B/S architecture can be installed on Linux servers with high security. Therefore, there are many server operating systems. No matter which operating system is used, most people can use Windows as the desktop operating system and the computer will not be affected, in this way, the most popular free Linux operating system has developed rapidly. In addition to the free operating system, the Linux database is also free of charge, which is a popular choice.

For example, if many people go to the "Netease" (originally Sina) network every day, they only need to install a browser and do not need to know what operating system the "Netease" server uses, in fact, most websites do not use Windows operating systems, but most of their computers are installed on Windows.

(3) load of application server running data is heavy.

Because the B/S architecture management software is only installed on the server, the network administrator only needs to manage the server. The main transaction logic of the user interface is on the server) the client is fully implemented through the WWW browser, and a few transaction logics are implemented on the browser. All clients only have browsers, and network administrators only need to perform hardware maintenance. However, the data load on the application server is heavy. If the server crashes, the consequences are unimaginable. Therefore, many organizations have database storage servers, just in case.

3. Differences between C/S and B/S

Client/Server is built on the LAN, and browser/server is built on the WAN.

(1) different hardware environments:

C/s is generally built on a dedicated network. In a small network environment, the LAN provides connection and data exchange services through dedicated servers.

B/S is built on a wide area network and does not need to be a dedicated network hardware environment, such as telephone Internet access, device rental, and information management. It has a stronger adaptability than C/S, generally, you only need an operating system and a browser.

(2) Different security requirements

C/s is generally oriented to relatively fixed user groups and has strong information security control capabilities. Generally, a highly confidential information system adopts a C/S structure and can publish some public information through B/S.

B/S is built on a wide area network and has relatively weak security control capabilities. It is intended for unknown user groups.

(3) Different program Architectures

The C/S program can focus more on processes, perform multi-level permission verification, and minimize the system running speed.

B/S's multiple considerations for security and access speed are based on the need for more optimization. Higher requirements than C/S, B/S structure of the program architecture is the development trend, from Ms. Net series biztalk2000exchange2000, etc., fully support the network component building system. The JavaBean Component Technology pushed by Sun and IBM makes B/S more mature.

(4) different software reuse

The reusability of components is not as good as that of components under B/S requirements.

The multiple structures of B/S pairs require relatively independent components. Relatively good reuse. Just like a table you bought can be reused, rather than a stone table on the wall.

(5) Different system maintenance

System maintenance is an important part of the software life cycle with high overhead.

Due to the integrity of the C/S program, it is necessary to make an overall investigation to solve problems and make system upgrades difficult. It may be necessary to create a new system.

The components of B/S are replaced individually to achieve seamless system upgrade. The system maintenance overhead is minimized, and users can download and install it on the Internet.

(6) handling different problems

The c/s program can handle fixed user surfaces and meet high security requirements in the same region. It should be the same system as the operating system.

B/S is built on the Wide Area Network. It targets different user groups and is scattered across regions. This is what C/S cannot do and has the least relationship with the operating system platform.

(7) different user interfaces

C/s is mostly built on the window platform, with limited performance methods and high requirements on programmers.

B/S is built on a browser, which provides richer and more vivid expressions to communicate with users. In addition, it reduces most of the difficulty and reduces development costs.

(8) different information flows

C/S programs are generally typical centralized mechanical processing with relatively low interaction.

B/S information flow to change, B-B, B-C, B-G and other information flow to change, more like the transaction center.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.