You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The document doesn't show an example of using the built in AddHealthChecks.
I have RabbitMQ, Redis, and Ngpsql checks I would like to add. I was wondering if my service lost connection to RabbitMq/Redis if a health check would cause a restart and then possible heal that connection
Question 1: Is ASP.Net required for these health checks and probes?
Question 2: Does .Net Aspire have the capability for probes and health checks for background services, with the Aspire Packages?
Describe the solution you'd like.
I would like to use the built in AddHealthChecks capabilities for a background service.
I would like to see an example in the Microsoft Docs on the best approaches and pro/cons of this approach.
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static HostApplicationBuilder CreateHostBuilder(string[] args)
{
var builder = Host.CreateApplicationBuilder(args);
// a lot of setup and custom code
builder.Services.AddHostedService<MessageQueueProcessor>();
return builder;
}
Thank you.
The text was updated successfully, but these errors were encountered:
I have a few AddHostedService, background worker containers running in Azure Container apps. There are health, liveness and readiness probes I wanted to use.
The document doesn't show an example of using the built in AddHealthChecks.
I have RabbitMQ, Redis, and Ngpsql checks I would like to add. I was wondering if my service lost connection to RabbitMq/Redis if a health check would cause a restart and then possible heal that connection
Question 1: Is ASP.Net required for these health checks and probes?
Question 2: Does .Net Aspire have the capability for probes and health checks for background services, with the Aspire Packages?
Describe the solution you'd like.
I would like to use the built in AddHealthChecks capabilities for a background service.
I would like to see an example in the Microsoft Docs on the best approaches and pro/cons of this approach.
Describe alternatives you've considered.
A clear and concise description of any alternative solutions or features you've considered. is informative using TCP to enable K8s health probes. I believe the same approach would work in ACA. There's a lot of custom code here, Is this the best approach?
Additional context.
Thank you.
The text was updated successfully, but these errors were encountered: