How about having heartbeat also available as a connect middleware?
This middleware would add a /heartbeat (or something like this) to the stack, but would run the checks upon request, not within a loop.
The rationale behind this is to be able to have something in the app itself that would look things from within.
Perhaps also in the future, have ports of heartbeat to other languages/frameworks, like a rack middleware, for example.
How about having
heartbeat
also available as a connect middleware? This middleware would add a/heartbeat
(or something like this) to the stack, but would run the checks upon request, not within a loop.The rationale behind this is to be able to have something in the app itself that would look things from within.
Perhaps also in the future, have ports of
heartbeat
to other languages/frameworks, like a rack middleware, for example.