Alibabacloud.com offers a wide variety of articles about microservices design principles, easily find your microservices design principles information here online.
http://blog.csdn.net/it_man/article/details/38292925A component, or assembly, refers to a binary unit that can be deployed independently, typically in the form of a DLL . For large software systems, good component design can break down the system into smaller components, so that each development team can focus on a single component without caring for the entire system. Component design requires adherence to
Definition: A software entity, such as a class, module, or function, should be open to extensions and closed to modifications.
Problem:During the software life cycle, errors may be introduced to the Old Code when the original code of the software needs to be modified due to changes, upgrades, maintenance, and other reasons, it may also cause us to have to refactor the entire function and re-test the original code.
Solution:When the software needs to change, try to implement changes by extending
divide the domain and divide the boundary. In the code design, previously saw the big guy uses the module (Modules) to carry on the context demarcation and the division. Under
For the micro-service, it is very suitable from the business to divide the above each modules, divided the various business sectors.
MicroServices + DDD, the personal feel should be the first is from the perspective of micro-servic
In object-oriented design, how to deal with changes in design requirements through small changes is a matter of great concern to designers. To this end, many oo pioneers have proposed many object-oriented design principles to guide the design and development of OO. Below are
: This article mainly introduces (5) Object-Oriented Design Principles 1 --- general principles and single responsibility principles. if you are interested in PHP tutorials, refer to them. I. general principles:
1. five object-oriented
9 principles of GUI Design (Article 1) and 9 principles of gui Design (Article 1)
Basic Principle 1: Focus on users and their tasks, rather than technologyBasic Principle 2: first consider the function and then representBasic Principle 3: Consistent with users' views on tasksBasic Principle 4: The
Six principles of design patterns (3) -- six principles of dependency inversion and Design Patterns
Definition:
High-level modules should not depend on low-level modules. Both of them should depend on abstract interfaces. Abstract interfaces should not depend on specific implementations. The specific implementation dep
Article Description: Android interface and interactive design principles.
Translator by:
After the iOS hig has been a powerful classic for n years, Android has finally launched a system of comparison hig (presumably to match the Android 4.0 Ice Cream Sandwich). By carefully comparing the "Design principles"
Talking about the index design principles of mysql and the differences between common indexes, mysql Design Principles
Index definition: a separate database structure stored on a disk. It contains reference pointers to all records in a data table.
Database index design
10 required webpage navigation menu design principles and navigation menu design principles
The navigation menu of a website is the most important instruction for users to learn more about other parts of the website after reading the webpage, and is vital for retaining users. There are many ways to
Object-Oriented Design Principles and object-oriented design principles
Seven object-oriented design principles
1. Open and Close principles
2. Lee's replacement principle
3. Single
Six principles of design patterns (6) -- six principles of open and closed Design Patterns
Definition:
The objects (classes, modules, functions, etc.) in the software should be open to extensions, but the modifications should be closed.
Personal Understanding:
In general, the open/closed principle refers to various com
printing staff ID method, the head office directly to print, thus avoiding the coupling with the staff of the branch.The purpose of the Dimitri law is to reduce the coupling between classes, because each class reduces unnecessary dependencies, so it does reduce the coupling relationship. But everything has degrees, although can avoid and non-direct class communication, but to communicate, will inevitably through an "intermediary" to contact, such as in this case, the head office is through the
Seven main object-oriented design principles
Opening and closing principles : In the face of demand, changes to the program is done by adding new code , rather than changing the original title
dependency Reversal Principle : High-level modules should not rely on the underlying modules, two should be dependent on the abstract, the abstract should not rely on the
Focus on not stopping the user and all else will follow (Focus on not planning the user and keeping everything going)
The watch is a perfect device shape that allows you to use it when doing other things, such as cooking, eating, walking, running, and even talking. If your application causes users to stop what they are doing, it is a good opportunity to consider how to use the principles in this section to upgrade the program.
Try:
Calculate the time
Design principles and Landscape Design Principles
1.0 OCP principles
That is, the open and closed principle means that the design should be open to the extension and closed to the modification. After the software is designed, the
Six principles of design patterns (5)-the six principles of design patterns
Definition:
An object should have a minimum understanding of other objects. The dimit rule is also known as the minimum Knowledge rule. It is called the Least Knowledge Principle (LKP) in English.
Personal Understanding:
The primary objective
Seven major object-oriented design principles (Transition) and seven major design principles
I. Single responsibility principle:
Full name: "Single-Responsibility Principle"
Object-Oriented Design
Note: For a class, you should focus only on one thing and only one cause of it
Why design patterns? Let's take a look at the six principles and use the design pattern principles.
Introduction
I don't like reading books very much, because I forgot to read ten lines of books, so I read the left teacher and copied it to improve my memory.
This is the http://www
package, it will affect all classes in the package, but it will not affect other packages.
Package coupling principle
No-ring dependency principle (Acyclic Dependencies Principle, ADP)
The package dependency does not allow loops.
Stable-Dependencies Principle, SDP)
Dependency in a stable direction
Stable-abstractions principle (SAP)
The abstraction level of the package should be consistent with its stability.
Old ti
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.