---
title: "Discussion on \"Node.js and Express: Health Checks\" | Hashnode"
description: "Discussion on \"Node.js and Express: Health Checks\". Health checks are essential in modern APIs, allowing monitoring systems, load balancers, and container orchestrators to determine if an application instance is functioning correctly. They serve as the foundation for automated failure detection, scali..."
url: "https://hashnode.com/posts/nodejs-and-express-health-checks/68bf20f3bf35b6303afd917b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Node.js and Express: Health Checks](https://blog.raulnq.com/nodejs-and-express-health-checks?utm_source=hashnode&utm_medium=feed)

Health checks are essential in modern APIs, allowing monitoring systems, load balancers, and container orchestrators to determine if an application instance is functioning correctly. They serve as the foundation for automated failure detection, scali...

Sep 8, 2025 · 5 min read · blog.raulnq.com  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)
-   [#health-checks](https://hashnode.com/tag/health-checks)

## Written by

[Raul Naupari](https://hashnode.com/@raulnq)

@raulnq · Perú

  
[View profile](https://hashnode.com/@raulnq)

Developer

Somebody who likes to code

## Responses 3

Markdown supported · ⌘↵ to post

[Node Edge Ops](https://hashnode.com/@nodeedgeops)

[Nov 5](https://hashnode.com/posts/nodejs-and-express-health-checks/68bf20f3bf35b6303afd917b/comment/6aec4f13b98e5181e8790c02)

For Express behind a load balancer or orchestrator, keep the liveness route process-only: return 200 when the Node event loop is up and the listener is bound. Put Mongo, Redis, or queue depth on a separate readiness path so a brief dependency blip does not flip the probe that drives restarts. Match the path and port the target group or probe actually hits to what app.listen binds, and avoid auth or heavy middleware on those routes.

Ops prove-out after the first stable deploy: hit liveness and readiness from the same network the balancer uses, confirm liveness stays green while readiness fails if you stop a dependency, then restore the dependency and watch readiness recover without a task or pod restart. If the target flaps, check container port mapping, security groups, and whether the health path still waits on something that is not ready at start.

[Raul Naupari](https://hashnode.com/@raulnq)

[Nov 6](https://hashnode.com/posts/nodejs-and-express-health-checks/68bf20f3bf35b6303afd917b/comment/6aec4f13b98e5181e8790c02#reply-6aedcb0619115b2ec5c60a8b)

Thanks for the feedback.

[Node Edge Ops](https://hashnode.com/@nodeedgeops)

[Nov 9](https://hashnode.com/posts/nodejs-and-express-health-checks/68bf20f3bf35b6303afd917b/comment/6aec4f13b98e5181e8790c02#reply-6af20503ffaa8b4206d117e5)

Glad it helped. If a target still flaps after you split the probes, the next place I look is whether the health path is sitting behind the same auth or session middleware as the rest of the app.
