kasramp / Eris

Eris Weather API
https://eris.madadipouya.com/
GNU General Public License v3.0
12 stars 2 forks source link

Use circuit breaker for third party integrations #6

Closed kasramp closed 5 years ago

kasramp commented 5 years ago

Some of the third party services occasionally have outages, it will be good to use a circuit breaker and fall back to another service temporary if the default integration is inaccessible. One example of circuit breaker is Hystrix but that's not maintained by Netflix anymore. Better to use other options.

kasramp commented 5 years ago

Hystrix is still supported by Spring. For the fallback method, the best idea is to integrate some fallback services.

kasramp commented 5 years ago

Tests are failing, they need to be fixed. New tests should be written for both integration and Hystrix fallback.