In this short, I talk about a situation we came across work, where we should have abstracted communication between external APIs and our UI, by leveraging our backend. We were not doing so, and ended up having to change code (and deploy the changes) for both our backend and frontend. This could have been avoided if there was an explicit contract between our backend and frontend, so that even if the external API's structure changed, the UI wouldn't know anything about it or care about it. And the only thing we would have needed to do is change our backend...
#shorts