Skip to content

Anti-Corruption Layer

The Anti-Corruption Layer creates an isolating layer to provide clients with functionality in terms of their own domain model. The layer talks to the other system through its existing interface, requiring little or no modification to the other system.

It translates between different parts of the system that use different languages or models. It ensures that each model’s integrity is maintained, and inconsistencies are handled. For instance, if the Billing system must interact with an external third-party payment gateway, an anti-corruption layer could translate between the domain model in the Billing context and the model used by the external system.

acl