Andrewlock.net

Adding health checks with Liveness, Readiness, and Startup probes …

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 …

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

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 …

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 …

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 …

Category:  Health Go Health

Using Quartz.NET with ASP.NET Core and worker services

WebQuartz.Extensions.Hosting can be used either with ASP.NET Core applications, or with "generic host" based worker-services. There is also a …

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 …

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 …

Category:  Health Go Health

An introduction to OpenID Connect in ASP.NET Core

WebOpenID Connect is a simple identity layer that works over the top of OAuth 2.0. It uses the same underlying REST protocol, but adds consistency and additional …

Category:  Health Go Health

How to automatically choose a free port in ASP.NET Core 3.0

WebMy new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

Category:  Health Go Health

Injecting services into ValidationAttributes in ASP.NET Core

WebThis often leads to implementations requiring some sort of service locator pattern when external services are required, or a factory pattern to create the attributes. …

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, …

Category:  Health Go Health

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

Webtl;dr; Policy is thread safe, and for the circuit-breaker to work correctly, it must be shared so that you call Execute on the same Policy instance every time! The scenario …

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 …

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 …

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 …

Category:  Health Go Health

Built in options for running async tasks

WebPart 1 - Built in options for running async tasks (this post) Part 2 - Two approaches for running async tasks. Part 3 - Feedback on async task examples and …

Category:  Health Go Health

How to pass parameters to a view component

WebWhen invoking from a view in ASP.NET Core 1.0.0 or from a controller, you can use an anonymous method to pass parameters, where the properties are the name …

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 …

Category:  Health Go Health