Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.85 KB

Health_Check_API.md

File metadata and controls

45 lines (37 loc) · 1.85 KB

Health Check API

Motivation

Solution

Concepts

  • A service exposes a health check API endpoint which returns the health of the service.
  • A health check client periodically invokes the endpoint to check the health of the service instance.
  • A health check client can be
    • Monitoring service
    • Service registry
    • Load balancer

Implementation

  • Basic measurements of the application's availability and performance:
    • The response code.
    • The content of response.
    • The response time (network latency + request processing time).

Pros & Cons

Pros

Cons

Consideration

Topic Consideration Possible Solution Options
Security Protect the health check endpoint from public access
  • Eable authentication for accessing the health check endpoint.
  • Expose the health check endpoint on a different IP address.
  • Configure the health check endpoint on a non-standard HTTP port.
  • When To Use

    References