Anti-corruption layer
The anti-corruption layer (ACL) is a pattern from the book Domain-Driven Design by Eric Evans. The concept describes the situation when one has two systems that need to communicate with each other and that if they're incompatible, there needs to be a delegated layer of communication to ensure requests and responses are understood by both systems. The ACL consists of 3 components: a facade, an adapter, and a translator. The facade, as its name suggests, is a component facing or built into the monolith. The monolith uses this as a means of publishing its functionality. The adaptor component publishes service endpoints to the monolith to be available to external microservices.
The translator is a component that would act ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access