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

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.

主站蜘蛛池模板: 高平市| 嘉黎县| 来凤县| 康平县| 闸北区| 包头市| 乌苏市| 酉阳| 大荔县| 远安县| 鄂尔多斯市| 长治县| 临澧县| 安国市| 静宁县| 四会市| 定结县| 友谊县| 三亚市| 运城市| 鹿邑县| 和田县| 东丰县| 嘉黎县| 金秀| 灵石县| 蛟河市| 丹棱县| 尼木县| 思茅市| 理塘县| 奇台县| 鸡西市| 扎赉特旗| 上饶市| 梁山县| 顺昌县| 砀山县| 阿尔山市| 都兰县| 上饶县|