problem:
We have a service that validates phone numbers. It uses multiple third party API providers to find out whether a given number is valid or not. There's no actual http API so we need to mock those providers to make it testable. The code should use SOLID principles and other best practices. Also, the providers may fail due to different errors. How would you build a fallback solution if one provider fails?
Thanks for your help!
I'd write my own api which relies on those apis
Обсуждают сегодня