Skip to main content

Explain health checks in microservices.

Junior Microservices
Quick Answer Health checks tell the orchestrator if a service is ready to serve traffic. Liveness probe: is the app alive? (if not, restart it). Readiness probe: is the app ready for traffic? (if not, stop sending requests to it). You implement an endpoint (/health or /ready) that checks DB connections, dependencies, and internal state.

Answer

Liveness probes check if the service is running. Readiness probes verify if it is ready to accept traffic. Orchestrators like Kubernetes use these checks to manage service availability.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice