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

Anti-corruption layer

The anti-corruption layer remains part of a domain that interacts with external systems, or their own legacy systems. Here, anti-corruption is the layer that consumes data from external systems and uses external system data in the domain model without affecting the integrity and originality of the domain model.

For the most part, a service can be used as an anti-corruption layer that may use a facade pattern with an adapter and translator to consume external domain data within the internal model. Therefore, your system would always use the service to retrieve the data. The service layer can be designed using the facade pattern. This would make sure that it would work with the domain model to provide the required data in a given format. The service could then also use the adapter and translator patterns that would make sure that, whatever format and hierarchy the data is sent in by external sources, the service would be provided in the desired format and the hierarchy would use adapters and translators.

主站蜘蛛池模板: 乌兰浩特市| 万全县| 乳山市| 阳江市| 武川县| 汝州市| 尼玛县| 灌南县| 双牌县| 临武县| 泾阳县| 福海县| 彰化市| 涞源县| 阜宁县| 德化县| 虹口区| 五原县| 洪湖市| 西峡县| 景德镇市| 全南县| 开封市| 桦南县| 临夏市| 越西县| 岳西县| 双鸭山市| 盐山县| 安塞县| 乐陵市| 广平县| 平武县| 林甸县| 贵州省| 白沙| 鲁山县| 屏边| 南充市| 武定县| 洮南市|