Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the health check with a readiness check. #27

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

SamirTalwar
Copy link
Contributor

The NDC specification states that the health check should respond with 200 OK when the connector is ready to start accepting requests (i.e. "readiness").

Whether the underlying data source is up and running is not important here.

This adds a default implementation to the method to make it trivial for connector authors to handle this particular request. The method name has been changed to clarify matters and also to force connector authors to understand the change.

We will consider adding further endpoints to check "liveness" and "connectedness" in the future.

The NDC specification states that the health check should respond with
`200 OK` when the connector is ready to start accepting requests (i.e.
"readiness").

Whether the underlying data source is up and running is not important
here.

This adds a default implementation to the method to make it trivial for
connector authors to handle this particular request. The method name has
been changed to clarify matters and also to force connector authors to
understand the change.

We will consider adding further endpoints to check "liveness" and
"connectedness" in the future.
Copy link
Contributor

@daniel-chambers daniel-chambers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SamirTalwar SamirTalwar added this pull request to the merge queue Aug 8, 2024
Merged via the queue into main with commit 2355719 Aug 8, 2024
10 checks passed
@SamirTalwar SamirTalwar deleted the samirtalwar/health-is-readiness branch August 8, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants