Ask HN: What is the simple way to ensure internal services stay up?
My server runs a core loop that must do an iteration at least once a minute. If it fails to do an iteration, I should be notified.
What's the easiest way to do this? Seems like I can either: 1. ping a service like healthchecks.io at the start of a loop or 2. expose some HTTP endpoint indicating whether the loop is running on time
Not sure if both are equivalent
1 comment
[ 3.0 ms ] story [ 11.2 ms ] threadif you want it online then yeah, slap an endpoint in to show last loop time, and you can instantly tell it stopped a while ago, etc