官术网_书友最值得收藏!

Clean Architecture Pattern

The Clean Architecture Pattern, in its simplest terms, means to write a clean code, by separating it into layers, with the outer layer being your implementations and the inner layer being the business logic. An interface connects these two layers, controlling how the outer layers use the inner layers.

This kind of code architecture pattern is also known as Onion Architecture because of its different layers, as seen in the following figure:

Figure 2.2.4

The inner layers have no idea about the outer layers. The outer layer uses the components from the inner layers based upon its needs, meaning the outer layers are dependent on the business logic implementations of the inner layers. Hence, the dependency points inwards.

主站蜘蛛池模板: 夏河县| 沁源县| 水富县| 吴堡县| 平罗县| 富民县| 兴宁市| 抚顺市| 三都| 北辰区| 赤城县| 高尔夫| 延长县| 宁都县| 紫阳县| 蚌埠市| 房山区| 乐至县| 方正县| 武功县| 通榆县| 江津市| 荥经县| 英吉沙县| 东平县| 沙湾县| 杭锦旗| 衢州市| 洪湖市| 九寨沟县| 涿鹿县| 西乌珠穆沁旗| 汉沽区| 白沙| 鞍山市| 杭锦旗| 乌鲁木齐市| 道真| 梁河县| 弥勒县| 定安县|