![]() ![]() In the above example, even though the database is necessary for the functioning of the HTTP application, the health check will return a positive result if the database fails. If a dependency is critical for the functioning of any service, then it should be considered while monitoring the health of an application. It does not reveal anything about the state of its dependencies. ![]() The limitation of using the ping endpoint for checking the health of an application in this context, is that it can only tell you if the application itself is alive. This can be anything from a database, to another HTTP server. In real world applications though, a service always uses other services to function. This is a pretty good way of checking if a service is running or not. If the service happens to be an HTTP server, then the ping endpoint would probably refer to an HTTP GET call to a /ping route: This is an extra endpoint added to a service for the sole purpose of expressing its availability. ![]() The most common way of running application health checks is by routinely interacting with a “ping” endpoint. Advertisements The current state of application health checks # This post elucidates the limitations of current monitoring techniques, and introduces a composable method of checking the health of an application together with the services that it depends on. The standard way to do this is to periodically check the “heartbeat” of a running application by interacting with one of its API endpoints.Īlthough this method can tell you if the application itself is up and running, it doesn’t tell you anything about the many services that the application depends on (for example, a database, cache, or another running service), even though these dependencies are critical for its functioning. Monitoring an application’s health is one of the most important tasks when running production grade services. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |