Provide a way to implement a HealthChecker
with peioric polling easily.
#3392
Labels
Milestone
HealthChecker
with peioric polling easily.
#3392
A user wants to implement a
HealthChecker
that updates its healthiness by polling an external source (e.g. database) periodically, so thatHealthChecker.isHealthy()
merely returns a cached value. This is mainly because:HealthChecker.isHealthy()
that takes long time can make a server look unhealthy.HealthChecker.isHealthy()
, and thus it is suboptimal to actually check the health of the external source.It'd be nice if we provide a utility that simplifies the implementation of this pattern, e.g.
Discussion at Slack: https://line-armeria.slack.com/archives/C1NGPBUH2/p1615691261133800
The text was updated successfully, but these errors were encountered: