ruby-protobuf / protobuf

A pure ruby implementation of Google's Protocol Buffers
https://github.com/ruby-protobuf
MIT License
462 stars 101 forks source link

add healthcheck server #430

Closed skunkworker closed 1 year ago

film42 commented 1 year ago

I'm not sure anyone is actually using the service directory anymore, so this might not be the best place for a healthcheck. You should instead use the after server start hook to signal a healthy server to your init system. Otherwise, you should use an initializer to provide app specific insights. For example, MX is using protobuf-nats for transport, and this health check wouldn't guard against a failed NATS cluster, etc.