It is not easy to see the architecture of the system from the source code of the system, but after identifying important architectural elements, it is easier to navigate through the system, understand the structure and properties of the system, and plan for additional modifications and refactoring activities. This is because once the architectural features of the system are extracted, we share a set of semantically rich vocabularies with the system's creators. This also helps us to understand the types of interactions, communication patterns, and code structures. Some people say that architecture is the art of the elderly, and in practice, experienced designers are more likely to foresee how specific designs deal with specific problems and which architectural solutions can be combined to form a functional body.
Common structures can be categorized into a few different types of structures: centralized repositories, data streams, object-oriented, or hierarchical architectures. These types are often combined into a hierarchical structure to control the complexity of large systems. The architecture of a centralized repository relies on a central process or data structure that acts as a hub for control or information in the system. In a large-scale system, a collaborative task may be assigned to multiple hub processes. For example, window manager, file and print server, and network resource management program are all using this kind of structure. One element of the distributed architecture is the underlying communication protocol, and a more general approach is performed using the concept of a remote procedure call or remote method invocation.
The data flow architecture is often used when the process can be modeled, designed, and implemented into a series of data exchanges. Although the data flow architecture seems to have many limitations, a single data flow architecture often simulates real-world processes and how people actually work. When developing a system that applies a data flow architecture, it can be done sequentially or in parallel. Finally, the data exchange that is implemented can be reused. The obvious sign is that the program uses temporary files or pipelining to communicate between different processes. An object-oriented architecture that builds on objects that maintain their own state and interact with each other, and the architecture of the system is defined by the relationships between different classes or objects, and by the way objects interact. Systems in the real world can be composed of hundreds of different classes. When analyzing the code of a real-world system, his general structure is modeled as a class diagram or an object graph, and attributes and operations are represented by symbols. UML class diagrams show a series of interfaces, classes, collaborations, and relationships that help us understand the structural characteristics of the system architecture.
The layered architecture is suitable for systems with a large number of sibling subsystems in which each independent layer provides a clear interface to the layer above it and communicates with the layer below it using a different but canonical interface. In this framework, each layer can be implemented using different techniques and methods, without affecting the overall architectural integrity. The operation of the computer network and the operating system follow such a method that the physical layer does not affect the data format passed on. One important rule is that lower layers cannot use higher layers, and any layer can be added to any layer, which makes it difficult to replace or take away these layers. The core element of building and understanding a complex architecture is the concept of hierarchical decomposition. Hierarchical decomposition is often independent of the architectural characteristics of the system, and the architecture can be defined either hierarchically or as one or more orthogonal, interacting layers, and it is important to understand that the system can be organized across a variety of axes using different distinct hierarchical boundary models.
With the increase of website access traffic, most of the network services are to provide services in a load-balanced cluster, with the expansion of cluster scale, the original single-machine-based server management model has not been able to meet our needs, the new requirements must be able to centralized, grouped, batch, automated server Management To perform scheduled tasks in a batch format. In the distributed server Management system software, there are some excellent software, one of the more ideal is cfengine. It can group servers, different groupings can be customized system configuration files, scheduled tasks and other configurations. It is based on the C/s structure, all server configuration and management scripts are stored on the Cfengine server, while the managed server runs the Cfengine Client program, Cfengine Client sends requests to the server on a regular basis through SSL-encrypted connections to obtain the latest configuration files and management commands, scripts, patches, and other tasks.
Code reading methods and practices read Note three