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

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.

主站蜘蛛池模板: 上饶市| 天津市| 汉川市| 娄底市| 离岛区| 左云县| 海丰县| 中西区| 英超| 佳木斯市| 张家川| 安远县| 潜江市| 武汉市| 莱芜市| 安远县| 奈曼旗| 张家港市| 泰和县| 濉溪县| 沅陵县| 汤原县| 青龙| 镇雄县| 石门县| 瑞昌市| 萝北县| 伊宁县| 南丹县| 芦溪县| 武威市| 遂川县| 定日县| 公主岭市| 罗平县| 高尔夫| 临泉县| 红原县| 金塔县| 农安县| 达拉特旗|