I made it a goal to learn one new thing a day, at least one. And I'll try to share it here.
My goal here is to explain what I learned in a simpler way. As if giving a brief explanation for a lay person or not.
One of the things I recently came across was the concept of the Anti-Corruption Layer.
The Anti-Corruption Layer is a design pattern in software development. And it is used to carry out communication between subsystems that have some incompatibility between them.
Explain: Subsystem A, when communicating with another subsystem B, uses this layer as an intermediary.
Communication between A and the Layer is done in the data model and architecture of that subsystem.
In turn, Layer and subsystem B communication occurs according to B's data model and architecture.
It is important to say that this type of pattern is used when there are SEMANTIC differences between the subsystems.
So, for example, the Anti-Corruption Layer can act by adapting a field name that is in snake case (snake_case) in the first subsystem and translating it to camel case (camelCase) to be used in the other subsystem.
This prevents possible software failure due to corruption.
For deeper reading: https://learn.microsoft.com/pt-br/azure/architecture/patterns/anti-corruption-layer
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3