Ask HN: What is the simple way to ensure internal services stay up?

https://news.ycombinator.com/item?id=37396959
by vsroy • 3 years ago
2 1 3 years ago

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

Related Stories

Loading related stories...

Source preview

news.ycombinator.com