When you interact with an external service, you have to make sure it’s availability does not affect your applications. The circuit breaker pattern can be used to handle downtimes and throttles from external service.
Read more on the trivago tech blog how we used AWS Step functions to handle this.