How to measure availability of a GraphQL endpoint? #1155
Unanswered
ChariotChai
asked this question in
Q&A
Replies: 1 comment
-
This might be more applicable to the GraphQL over HTTP specification (response status codes) than GraphQL in general. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For general HTTP endpoints, we could usually calculate its availability by 2xx requests / total requests, or non-5xx-requests / total requests.
However GraphQL endpoints treat error as data and may include multiple data points in one single query. Is there a best practice to measure availability of that?
We are going to define a list of error codes which could be classified into 4xx-like and 5xx-like types. And if there is any 5xx-like error code in the error list of response, this request could be marked as a failure request. The availability could be calculated by non-failure requests / total requests. Does this make sense? Or any better idea?
Beta Was this translation helpful? Give feedback.
All reactions