3 ms·
And what watches the watchmen? The microservices trend is great but this sort of monitoring starts to fall apart when you horizontally scale for HA. In this ca
by djb_hackernews 11y ago
And what watches the watchmen?
The microservices trend is great but this sort of monitoring starts to fall apart when you horizontally scale for HA. In this case we separate out our monitoring by doing synthetic requests at the service level, and then very specific health checking at the "instance" level (really containers now). Instance level health checks will ensure connectivity to outside dependencies, databases, filesystems etc. The trick is to know when a failure is a localized failure or a widespread failure. No sense in taking out all of the instances if they all can't talk to the DB.
Also, I'm not a Go developer but is this idiomatic?
- jpittis 11y ago> Also, I'm not a Go developer but is this idiomatic? The error handling is kinda strange. I would do some like this: var ErrUnexpectedResponse = errors.New("unexpected response") .... func syntheticHttpRequest(url string, apiToken string) error { ... } else if resp.StatusCode != 202 { return ErrUnexpectedResponse } return nil } (a bunch of other stuff was mentioned in the comments)
- weberc2 11y agoWhat's strange about this?