Strategy when a request fails or loads slowly #1870
Unanswered
writingdeveloper
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can set a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I request data from the API server. However, this API server sometimes throws a connection wait exceeded error.
I tested API server for 24hours and results are on below image. It shows It can access 67%~78% success range.
It means when I request API 10 times, it only returns data 6~7 times.
I cannot control API server so I have to make strategy that when server cannot access to API server, is there any strategies to handle this problem?
I found Retry API, and it seems that this API are suitable in my case.
I want to make it like this.
Beta Was this translation helpful? Give feedback.
All reactions