Exactly,
the first check :
A check on our status page that defines if the server is working properly
We get a json that defines the status of our server on each different macro services (authentication resource access, etc) with operational, downtime, issues
The second check:
A check on an endpoint to see if the server is reachable
is made only if the first one succeed and yes this is more of a reachability of our APIs endpoints, just expecting a body with ok. If the request goes on timeout or cannot find the host there is probably something blocking the outgoing connection.
We applied this further control due to the fact that the domain of the first check is different from the second and we experienced some issues where the user had reachability of the first one, but not on the second due to firewall rules blocking requests to api.xyx domains.
Best,
Andrea
Topic:
Programming Languages
SubTopic:
Swift
Tags: