Health check endpoint

Any known pattern or best practices for implementing health check endpoint for serverless endpoints?

As you know, every http verb could have it’s own lambda.
eg.
GET /users => return all users
POST /users

I was thinking of adding a query string to all GET endpoints which always return a 200 response. This way we know that the lambda is up and working without actually hitting the service.
e.g.
GET /users?healthcheck=1 => return a 200

Any ideas/suggestions?

2 Likes

Did you choose any approach?