3 ms·
Am I right in my understanding that the end of the last code snippet shows that the app will error out for the user every time any single one of the many APIs u
by mononcqc 12y ago
Am I right in my understanding that the end of the last code snippet shows that the app will error out for the user every time any single one of the many APIs used is unavailable, rather than making an average of the remaining services (1 of them)?
Isn't this approach making the service's downtime be the sum of the downtime (minus overlap) from all the APIs being called?
- enneff 12y agoYou're quite right. The mutliWeatherProvider should probably collect the errors and only error out if it doesn't get a single good response. Easy to do.