The following is a typical example of a large system.
Before discussing the design principles, we must first clarify the fact:
In a software project team, when discussing project design, everyone has their own design philosophy. These design concepts are generally related to everyone's growth experience. People who are in close contact with users, such as product managers and pre-sales managers, should consider how the entire system is designed to make it easier for users and better fit users' business processes when designing a system, to solve users' problems. R & D system personnel, such as system architects and development managers, generally focus more on how the system architecture runs efficiently, how to reduce code workload, and how to reduce system complexity.
Therefore, a project team often has the following situation: if the decision-making power of a project is in the product manager, when developers actually develop code, it will complain that the features designed by the product manager cannot be implemented, or the implementation is too difficult, and even cause huge damage to the entire architecture. This is especially when demand is added later in the project.
If a system is fully implemented by the Development Manager or System Architect, it may design an architecture that is very convenient for developers to use. However, when meeting the various requirements of the Development Manager, because the limitations of the architecture may not be implemented, the product manager or pre-sales manager will say that this is a broken system and nothing can be achieved.
The core cause of this problem is that the product manager (pre-sales) is more familiar with the business and is not related to the difficulty of technical implementation. More is to design the system from the business perspective. The Development Manager (Architect) is more about designing the system from the technical point of view. Taking modularization as an example, people with certain experience know that the modularization Division at the beginning of design is crucial. However, when designing a system, the product manager is more concerned with the concept of user business modules, while the architect is more concerned with the concepts of technical modules and code reuse modules.
So how can we design a more complete system architecture? What principles should we follow when designing the system architecture?
My opinion is: no one can decide whether the design is reasonable or not. We should follow a design principle that everyone recognizes. Evaluating whether the design is reasonable should be judged from multiple perspectives. The advantages and disadvantages of the design cannot always be judged from one perspective. For example, you cannot criticize the unreasonable design of the technical architecture from the perspective of the Business architecture. Nor can we criticize the unreasonable business architecture from the perspective of technical architecture. We should make sure that everyone has to compromise on both sides and be compatible with two or more layers.
Before introducing the design principles of the Public Information Platform, let's talk about two general design ideas:
1. Top-Down Design: it refers to analyzing root elements and performing hierarchical design step by step.
2. Bottom-up design: lists the underlying modules that can be confirmed, summarizes the modules, and summarizes the modules step by step to form the top layer.
Consider the advantages and disadvantages of the two design modes:
1. Top-Down Design:
Advantages:
L you can control the hierarchy of the entire system from the upper layer. No level confusion issues.
L when there are few early stages, the layers are clear and the design is simple. It is conducive to the preliminary work.
L better report to leaders.
L better organizational arrangements, such as assigning different levels to different people for design. However, the overall architecture is unaffected.
L after a module is designed, you can enter the development stage in advance.
Disadvantages:
L unfavorable risk identification. Risks of sub-nodes, especially those that affect the entire system, cannot be identified at the beginning, and are actively addressed, making it easy to assemble major problems of the project. For example, the cost increases and the progress is delayed.
L it is not conducive to the overall architecture design. The top-down design is not based on the layer at the beginning, and it is easy to Continue large-scale adjustment of the Upper-layer architecture in the future.
L when there are more layers, the complexity of the relationships between layers increases and the design difficulty increases. There are even conflicting designs.
Typical application scenarios:
The typical method used by presales personnel for system design. You can create a business module based on your needs and design a model that fully complies with your business.
2. Bottom-up design:
Advantages:
L risks in various stages can be fully considered, risks should be listed in advance, and countermeasures should be prepared in advance to reduce the risk of project failure.
L The design is more comprehensive, and there will be almost no major rework problems.
L The more difficult the design will be.
Disadvantages:
L it is difficult to clarify the underlying unit modules in the early stage, which may cause logical confusion and difficult design, which is not conducive to the preliminary work.
L because of the design features, you must complete all the designs before you can start development.
L difficult work organization arrangement, more dependent on experienced personnel to continue risk identification.
L The preliminary work is trivial and is difficult to see the results, so it is not easy to report to the leaders.
Typical application scenarios:
The technical framework or the system design of a small system can be considered as a small system because of its clear structure. After the design is complete, the functions are relatively stable. Especially for the design of the technical framework, the overall development will be conducted only after the various details are fully considered.
In actual work, it is generally not directly used, such as the development of an information system, generally, the Development Manager or architect lists all possible risks or problems in advance for various risk assessment, plan validation, and then write the documents and plan the development in a bottom-up manner, facilitate approval by leaders, work organization, and plan formulation.
Corresponding to our public information platform, we also suggest adopting a compound architecture model.
It focuses on top-down, but fully considers the problems at various stages. Verify whether the system is reasonable through the architecture of various angles.
That is to say:
1. Due to the lack of user-defined requirements, there is only a few simple guidelines and national standards, so we should first ensure that the large framework is good at design, from top to bottom. Taking top-down as the "outline" as the main design line.
2. Considering the duration of the design, we recommend that you fully consider the problems and risks in each phase throughout the design process and determine the problems and risks that can be thought of at any time. As the "Page child" of the design and as a "copy" of the design ".
A) understand different terms and concepts in advance.
B) confirm your questions in advance.
C) Prevent and circumvent the risks raised by everyone in advance.
3. A detailed list of problems and risks helps develop a more comprehensive technical architecture and development plan. Ensure the normal development progress of the product.
4. Describe and verify the architecture from multiple perspectives, user issues, business processes, and technical architecture to ensure its rationality. You cannot only consider the rationality of the Business architecture, regardless of the technical implementation difficulty, or the convenience of the technical architecture, rather than the actual business situation (special document Introduction ).
Thoughts on the design principles of Large-Scale Systems