A very simple example of a watchdog microservice in Go.
This will produce
example binaries. Run
watchdog in the backgroudnd, then
$ ./watchdog& $ ./example
example will register itself with
watchdog and then exit.
watchdog will restart
example (which will simply exit) endlessly. You can observe this behavior in