Back to Catalog
Cloud
azure
Anti-Corruption Layer
Implement a façade or adapter layer between a modern application and a legacy system
Intent & Description
The Anti-Corruption Layer pattern implements a façade or adapter layer between a modern application and a legacy system. This layer isolates the modern application from the legacy system by translating data formats, protocols, and interfaces. It prevents the legacy system domain model from polluting the modern application domain model.
Real-world Use Case
Use when integrating modern applications with legacy systems or when migrating from monolith to microservices gradually.
Source
Advantages
- Isolates modern applications from legacy system complexities
- Enables gradual migration without full rewrite
- Translates between different data formats and protocols
- Prevents legacy domain model pollution
Disadvantages
- Additional layer adds complexity
- Requires maintenance of translation logic
- Can introduce performance overhead