Does this belong in feature requests?
Recently (23-24 August) the API suffered some timeouts. My custom PHP systems didn't respond too well, only because I hadn't put much thought into "what if API is slow or down?" :)
This prompted me to think about doing an API health check before attempting to perform any functions. I created an archived person named API TIMEOUT and now before any of my systems run I attempt getInfo on this person. If the response is NULL, my system can respond gracefully and alert me via email. Figured a getInfo was the fastest API function call, is there another?
Some/most of the systems I am developing are not actually used by me, so I can't have users left in the dark by a system that responds strangely.
I wonder if it were possible for Elvanto to offer a very fast and accurate health check API call (or similar) to provide a measure of current system status? Or is this something OAuth helps with?
For example: healthy, good, diminished, impacted, offline, down - any of these types of status in three levels. Three main levels would let us know if the API is going as expected, if for some reason it is impacted, or if it is down.
I imagine this function would need to be separate to the API, else it would be unavailable if the API were down.
The current health of the API could be measured at regular intervals and logged. Not only would our API Health query receive a current status, but could this not also help alert Elvanto if the API suffers a hit?
The query could be locked down to our keys, or maybe this is publicly available. Whichever permits the fastest status query possible and meets your security standards, surely wouldn't want this system impacted by a DoS attack.
Please sign in to leave a comment.