Distributed System Development LearningCSMode (1)
Chang jianzhao 2005-5-13
CSMode Overview
The distributed structure already exists. 30 Years of history, especially since the era of computer networks, distributed structures have become very popular. CS Mode ( Client-server architecture ) May be the most successful mode used for application software development. First, it appears in the host system. In the LAN environment, its performance is particularly outstanding. Now, CS Mode has become a basic development and design mode. Although CS Application software includes Client And Server Components and interact with each other in the network. But this does not mean that all CS The application must be designed in this way (that is, the network is not a must), and it is allowed to run on a single machine.
InCSMode, the working principle can be simply understood:
client to server submit a request ; server use some methods to process this request, return the result to client. As shown in:
ProcessingClientRequest,ServerItself can become anotherCSInClient.
As shown in:
Most of my friends think thatClient-serverIn application software,ServerI have done almost all the work. But this is not the case. In practical applications,ClientMost of the software logic is executed and most of the work is completed.ServerOf course, I also did some work. But its main job is to acceptClientAnd return results.
Many people say CS Structure is the most common example in distributed structures. Indeed, it is indeed a common architecture model, and it is also carried out through the network Client And Server But strictly speaking, CS The pattern may not be a true distributed structure. Why? We should first consider the definition and features of the distributed structure. In simple terms, a distributed system refers to data interaction between more than one computer through the network. Its biggest feature lies in its performance. (Performance) And Testability (Scalability ). While CS Due to a series of restrictions, it is difficult to achieve the characteristics of these two distributed systems. (The limitations will be discussed later ). On the other hand, the transparency of a single application is usually a feature of a distributed structure, CS The mode does not provide this feature. For example, a Web browser can be regarded as Client. The user must enter the website address to connect to Server In this case, it lacks transparency. Therefore, I can regard this web browser and server as two independent components in this system.
BecauseCSA series of limitations in the pattern, so that it cannot be regarded as a completely distributed structure. We can consider it more as a network application.ProgramStructure. In the next articleArticle, I will summarizeCSLimitations of the model. Thank you.
Note:
This is what I learned when I was learning about Distributed System Development. The content is a translation of excerpt notes (English) and a part of my understanding. So it is inevitable that there are errors. Please give me more advice. Thank you.
The post is posted on the blog site and cannot be forwarded in any form without permission.