Anti-Corruption Layer
Updated 2026-07-31
Summary
When a new system needs to integrate with a legacy system (or an external messy system), to prevent the poor model of the messy system from contaminating the core logic of the new system, an isolation layer is established in between, dedicated to translation and conversion.
Definition
When a new system needs to integrate with a legacy system (or an external messy system), to prevent the poor model of the messy system from contaminating the core logic of the new system, an isolation layer is established in between, dedicated to translation and conversion. Scaffold use: Protect core assets. When collaborating with a chaotic external environment or unreliable departments, do not directly couple; an 'anti-corruption layer' (such as a dedicated liaison or data cleansing mechanism) must be established to keep the internal core pure.
Introduction
How to use
Protect core assets. When collaborating with a chaotic external environment or unreliable departments, do not directly couple; an 'anti-corruption layer' (such as a dedicated liaison or data cleansing mechanism) must be established to keep the internal core pure.
Mechanism
Insert an adapter layer between two models/systems to translate and isolate each other's concepts, preventing one side's chaos from 'corrupting' the other.
Practice
In progress 0/3Practice this model in one real situation:
Cases
- In DDD, the core domain connects to legacy systems via ACL; microservices use gateways for isolation.
Common pitfalls
- Direct coupling of systems allows inconsistencies from external models to gradually penetrate and pollute the core.
Sources
Source support: Explicit
- learn.microsoft.comhttps://learn.microsoft.com/en-us/azure/architecture/patterns/anti-corruption-layerverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS