I’m wondering about some templates or patterns regarding how to protect my application from changes in external APIs, for example, inside of MS Azure or any other company’s API. What is the best way to do it and minimize changes in my code?
I’m wondering about some templates or patterns regarding how to protect my application from
Share
You need to essentially make your own API within your program. Partition the external API consumption with the use of interfaces, so if the external API changes, you can edit the implementation only, as the interface contracts will hold the rest of the program together.