Andrewlock.net

Adding health checks with Liveness, Readiness, and …

WebThe probe is defined in startupProbe, and calls the URL /health/startup on port 80. It also states the probe should be tried 30 times before failing, with a wait period of 10s between …

Actived: 4 days ago

URL: https://andrewlock.net/deploying-asp-net-core-applications-to-kubernetes-part-6-adding-health-checks-with-liveness-readiness-and-startup-probes/

Reducing initial request latency by pre-building services in a …

Web1 st request. 315ms ± 12ms. 2 nd request. 4.3ms ± 0.6ms. 3 rd request. 1.4ms ± 0.3ms. After the 3 rd request, all subsequent requests took a similar amount of time. As you can …

Category:  Health Go Health

Using health checks to run async tasks in ASP.NET Core

WebThis approach runs the startup tasks using the IHostedService abstraction, with a health check to indicate when all startup tasks have completed. Additionally, a small piece of …

Category:  Health Go Health

Just because you stopped waiting for it, doesn't mean the Task

WebAt the end of my previous post, in which I took a deep-dive into the new .NET 6 API Task.WaitAsync(), I included a brief side-note about what happens to your Task when …

Category:  Health Go Health

Logging the selected Endpoint Name with Serilog

WebThis is the second post in the series: Using Serilog.AspNetCore in ASP.NET Core 3.0. Part 1 - Reducing log verbosity with Serilog RequestLogging. Part 2 - Logging the selected …

Category:  Health Go Health

Reducing log verbosity with Serilog RequestLogging

WebPart 1 - Reducing log verbosity with Serilog RequestLogging (this post) Part 2 - Logging the selected Endpoint Name with Serilog. Part 3 - Logging MVC properties with …

Category:  Health Go Health

Logging MVC properties with Serilog.AspNetCore

WebPart 3 - Logging MVC properties with Serilog.AspNetCore (this post) Part 4 - Excluding health check endpoints from Serilog request logging. In my previous post I described …

Category:  Health Go Health

Built in options for running async tasks

WebThis is the first post in the series: Running async tasks on app startup in ASP.NET Core. Part 1 - Built in options for running async tasks (this post) Part 2 - Two approaches for …

Category:  Health Go Health

Excluding health check endpoints from Serilog request logging

WebThe Health Check endpoints available in ASP.NET Core 2.2+ are ideally suited for these probes. You can set up a simple, dumb, health check that returns a 200 OK response to …

Category:  Health Go Health

New in ASP.NET Core 3: Service provider validation

WebSummary. In this post I described the ValidateOnBuild feature which is new in .NET Core 3.0. This allows the Microsoft.Extensions DI container to check for errors in your service …

Category:  Health Go Health

Converting a terminal middleware to endpoint routing in ASP.NET …

WebPart 5 - Converting integration tests to .NET Core 3.0. In this post I provide an overview of the new endpoint routing system, and show how you can use it to create "endpoints" that …

Category:  Health Go Health

Generating the response writing expression for RequestDelegate

WebThis is the sixth post in the series: Behind the scenes of minimal APIs. Part 1 - A first look behind the scenes of minimal API endpoints; Part 2 - Extracting metadata from a minimal …

Category:  Health Go Health

Accessing route values in endpoint middleware in ASP.NET Core 3.0

WebIn my recent series about upgrading to ASP.NET Core 3.0, I described how the new endpoint routing system can be combined with terminal middleware (i.e. middleware that …

Category:  Health Go Health

When you use the Polly circuit-breaker, make sure you share your …

WebThis post is somewhat of PSA about using the excellent open source Polly library for handling resiliency to your application. Recently, I was tasked with adding a circuit …

Category:  Health Go Health

Deploying ASP.NET Core applications to Kubernetes

WebIn this series I cover a variety of topics and things I've learned in deploying ASP.NET Core applications to Kubernetes. I'm not an expert on Kubernetes by any means, so I'm not …

Category:  Health Go Health

Keyed service dependency injection container support

WebThis is the sixth post in the series: Exploring the .NET 8 preview. In this post I discuss the new "keyed service" support for the dependency injection container, introduced in .NET 8 …

Category:  Health Go Health

Short-circuit routing in .NET 8

WebShort-circuit routing is a new feature in .NET 8. It's applied to one or more endpoints in your application, and it means that the endpoint conceptually "skips" the middleware between …

Category:  Health Go Health

Setting global authorization policies using the DefaultPolicy

WebASP.NET Core has an extensive authorization system that you can use to create complex authorization policies. In this post, I look at the various ways you can apply these policies …

Category:  Health Go Health

Updates to Docker images in .NET 8

WebThe .NET 8 docker images all set ASPNETCORE_HTTP_PORTS=8080 by default. You can override it at runtime as I showed above, or you can change it in your dockerfile. If you …

Category:  Health Go Health