I have written a service which is dependent on other other service. Usually if other service timeouts or not responding then my service response time is affected. Is there any way I can find out that for how much time the service outage 开发者_运维百科is so taht i can wait for that many seconds and then retry.
Thanks, Shruti
In general: no, it's not possible, you probably shouldn't even know where the service is that you're accessing.
In your implementation: who knows, you might be lucky.
The normal way would be to wait for some time and then throw an exception.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论