In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "what are the world-famous architectures". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought. Let's study and learn "what are the world-famous architectures"?
Understand the architecture
There are currently four types of globally famous architectures:
1. Clean architecture: a hierarchical architecture that separates core business (corresponding to domain layer), UI correlation (corresponding to presenter layer) and data loading (corresponding to data layer) from each other. Different layers are connected by interfaces in turn, but do not understand each other's specific implementation.
2. DCI architecture: DCI is the abbreviation of Context interaction Interactions in data Data scenarios, and DCI is a mode that pays special attention to behavior (which can correspond to GoF behavior mode). The true meaning of DCI architecture can be summed up as follows:
1. Data data: the part of a domain object that represents the concept of a domain class.
two。 Scenario context: bring live object instances to scenarios that meet the requirements of the use case according to the immediate call at run time
3. Interactive interactions, which describes the activity algorithm that requires the role in the mind of the user.
3. DDD domain-driven design: in 2004, Eric Evans, a famous modeling expert, published his most influential book: Domain-Driven Design-Tackling Complexity in the Heart of Software (Chinese translation: domain-driven Design, March 2006, Tsinghua Press translation, or Domain Driven-Design architecture [Evans DDD]). The generation process of software is: analysis, design, programming, testing, deployment. In the past, the analysis domain and software design were split, and analysts collected basic concepts from the domain; and the design must specify a set of components that could adapt to the construction of programming tools in the project, and these components must be able to be effectively executed in the target environment, and be able to correctly solve the problems of the application. Model Design Design (Model-Driven Design) abandons the method of splitting analysis model and design, and uses a single model to meet these two requirements. This is the domain model.
4, hexagonal architecture: hexagonal architecture (Hexagonal Architecture), also known as port and adapter architecture style, in which the "six" specific numbers have no special meaning, only a "magnitude" meaning, the definition of hexagon is just convenient for more visual understanding. We know that the important role of hierarchical architecture is to avoid coupling. Classical hierarchical architecture and hexagonal architecture are both a kind of hierarchical architecture, but they play a different role. Classical hierarchical architecture focuses more on abstract separation. The responsibilities of each layer are clearly divided, and the dependencies of each layer are more abstract, so as to avoid the emergence of coupling, while in the hexagonal architecture. To avoid coupling in the form of "componentization", each business unit is minimized as much as possible, and then these business components are gathered together and flattened with a hammer, so, in the whole collection, these small business units are "equal", and this way is summed up in one word, that is, "flattening".
Third, design mode
Design patterns (Design Pattern) are a set of repeatedly used, well-known, classified, code design experiences. The purpose of using design patterns: for the reusability of the code, to make the code easier for others to understand, and to ensure the reliability of the code. Design patterns make code writing truly engineering; design patterns are the cornerstone of software engineering, just like the structure of a building.
1. The importance of design patterns:
Design pattern is a basic requirement for senior software engineers and architects to interview (we'll talk about other things after entering this threshold through the interview first)
Design pattern is a safe, efficient and reusable solution that has been tested by a lot of practice. Don't reinvent the wheel, and most of the time the wheel you invented is not as good as what you already have.
Design patterns are widely accepted and used by mainstream engineers / architects, and you use them to facilitate communication and code review.
Using design patterns can help you solve 80% of your code design problems quickly, thus allowing you to focus more on the business itself
The design pattern itself is the use of several major features and the practice of several major design principles, the amount of code has accumulated to a certain extent, you will find that you are already using some design patterns more or less.
The architect or team leader teaches the junior engineer design pattern, which can easily improve the code design level of the junior engineer in a way recognized by everyone, thus helping to improve the engineering strength of the team.
IV. Code form
Explaining architecture and design patterns in this way should give you a better understanding of it:
Now I'm going to build a house (demand). Of course, the house should be beautiful, generous and beautiful. Call Jack, the most famous architect in the country, to design my house first and let me have a look at it (architect). The Jack was designed by an old driver. I'm very satisfied, but don't build it on the left side of the house and set aside part of it for my future children to use. There is an extra corridor in the upper right corner and a part of the house in front of the courtyard to be set aside as a garden. Jack readily agreed to change so much, because Jack had long thought that it would change and secretly used the plan he had summed up all his life (design pattern). All right, the bricks are moved, the walls are built, and the workers build houses happily depending on the design given by Jack (programmer).
Thank you for your reading. the above is the content of "what are the world-famous architectures?" after the study of this article, I believe you have a deeper understanding of what the world-famous architecture has. Specific use also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.