I tried to find a description of the api that lets you check last response time, and if a server is up.
In my program I want to check if the server is up that is about to process my image. Is there a recommended way for this?
If it is down I would try one of the other servers.
Also if one has response time over, let us say, 5 sek, I would like to choose another one. Is there a recommended way of getting the latest response time?
It uses 3 OCR API endpoints. It first rotates them (different one for each call) and then uses the fastest one. After a certain time (one day) or if one endpoint is down, it tests again.