Skip to content

Instantly share code, notes, and snippets.

@bearzk
Created December 25, 2018 16:01
Show Gist options
  • Save bearzk/5106b4dda2e7a80f2e9d3feb38c8a7c6 to your computer and use it in GitHub Desktop.
Save bearzk/5106b4dda2e7a80f2e9d3feb38c8a7c6 to your computer and use it in GitHub Desktop.
[Health Endpoint Monitoring] #cloud #designpattern

Health Check

Why?

Check the system is working properly, if any errors or anomaly, we want that be detected early than late.

When?

  • check availability
  • check operation correctness
  • check middle-tier or shared service to detect and isolate a failure ...

What?

  • health status of components of an application, db, queue, etc
  • response code
  • response content
  • response time ...

How?

  • expose at least an endpoint for a whole system level check
  • use parameters to check different level of availability
  • obscure and secure the endpoint
  • cache the status and show through an endpoint, in case that's called many times, for example in a dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment