Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/monitoring-health-of-aspnet-core-background-services-with-tcp-probes-on-ku.md

Kubernetes

Monitoring Health of ASP.NET Core Background Services With TCP Probes on Ku

Many microservices applications require background tasks and scheduled jobs to process requests asynchronously. In the .NET Core ecosystem, background servic... Many microservices applications require background tasks and scheduled jobs to process requests asynchronously. In the .

dzone.com26 Oct 2020 · summary

article --summary

The summary

In the .NET Core ecosystem, background services are called Hosted services because a single host, such as a web host or a console host, can run several such services in the background while it is alive. Unlike HTTP probes that give you the option to respond to every probe request with the appropriate status code to indicate the health of the service, with TCP probes, you can either accept or reject a TCP connection from Kubernetes to indicate the health of the service. You wouldn't see any error events yet because the service works as expected and the health of the service is good. In the previous output, you can see that Kubernetes determined that the service is unhealthy because of repeated probe failure.

Editorial note: This is a summary of an article first published by dzone.com. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.