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

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.

主站蜘蛛池模板: 临沧市| 澄城县| 乌兰县| 乌什县| 阜平县| 开江县| 伽师县| 华亭县| 临夏市| 施甸县| 兴义市| 宜丰县| 乌兰察布市| 庆安县| 白沙| 中卫市| 个旧市| 慈溪市| 托里县| 中牟县| 沈丘县| 故城县| 老河口市| 新巴尔虎左旗| 玛沁县| 祁阳县| 东乌| 平湖市| 琼结县| 葵青区| 盘山县| 邹城市| 刚察县| 扎赉特旗| 寻乌县| 汝城县| 昆明市| 越西县| 黔西县| 凤山县| 湘潭市|