Code-maze.com

Health Checks in ASP.NET Core

Health Checks allow us to determine the overall health and availability of our application infrastructure.They are exposed as HTTP endpoints and can be … See more

Actived: 7 days ago

URL: https://code-maze.com/health-checks-aspnetcore/

OpenTelemetry in .NET

WebObservability. Before we start to explore OpenTelemetry in-depth, let’s cover a fundamental, related topic – observability. When talking about observability in relation …

Category:  Health Go Health

Tracking Application Health With OpenTelemetry Metrics in .NET

WebThese metrics provide insight into the availability, health, and performance of our applications. They allow us to compare values over time, to determine if our …

Category:  Health Go Health

Creating Resilient Microservices in .NET with Polly

WebCreating a “Fallback” Policy. The easiest way to do this is via the NuGet package manager console: PM> install-package Polly. The first and most simple way to …

Category:  Health Go Health

Integration Testing in ASP.NET Core

Webusing Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; Our class implements the …

Category:  Health Go Health

How to Build a Multitenant Application with ASP.NET Core

WebBuild Multitenant Application with ASP.NET Core Web API. So, let’s think about the effective strategy for the inventory app we’re talking about. We’re going to …

Category:  Health Go Health

API Versioning in ASP.NET Core

Weboptions.GroupNameFormat = "'v'VVV"; options.SubstituteApiVersionInUrl = true; }); The specified format code GroupNameFormat will format the version as “‘v’major …

Category:  Health Go Health

Access Modifiers in C#

WebProtected Access Modifier. The protected keyword implies that the object is accessible inside the class and in all classes that derive from that class.We will talk in …

Category:  Health Go Health

Building Distributed Applications With .NET Aspire

Webbuilder.Build().Run(); In the AppHost ‘s Program class, we use the AddRedisContainer() method passing the name of “cache” to register a Redis container. …

Category:  Health Go Health

ASP.Net Core MVC Tutorial

WebThe ASP.NET Core MVC is a lightweight, open-source, and highly testable framework that seamlessly integrates with the ASP.NET Core. ASP.NET Core MVC provides a patterns …

Category:  Health Go Health

Using MassTransit with RabbitMQ in ASP.NET Core

WebMassTransit is a free, open-source, distributed application framework for .NET applications. It abstracts away the underlying logic required to work with message …

Category:  Health Go Health

How to Use RabbitMQ in ASP.NET Core

Webusing var channel = connection.CreateModel(); Ensuring we use the RabbitMQ.Client namespace, we first create a new ConnectionFactory, using the …

Category:  Health Go Health

Best Practices for Logging With Serilog

WebWe can easily integrate Serilog with Microsoft’s built-in logging interface, which is one of the most useful practices to follow. By employing this approach, we not only …

Category:  Health Go Health

Configuring and Using Swagger UI in ASP.NET Core Web API

WebFirst of all, we are going to enable static file middleware in the Configure() method in the Startup.cs file: app.UseStaticFiles(); After that, let’s acquire the contents of …

Category:  Health Go Health

Testing Controllers with Unit Tests and Moq in ASP.NET Core

WebAlso, you will see that testing controllers with unit tests is not that hard at all. In the first test, we are going to verify that the Index action returns a result of type …

Category:  Health Go Health

Different Log Levels in Serilog

WebAs the log level increases from Verbose to Fatal, its significance also increases.. Generating Log Messages at Different Log Levels. ASP.NET Core provides …

Category:  Health Go Health

Implementing API Gateway with Ocelot in ASP.NET Core

WebTo finalize, we should modify the launchSettings.json file to set up this microservice to start at port 5002 and to don’t use the swagger page (similar to the article …

Category:  Health Go Health

Rate Limiting in ASP.NET Core Web API (.NET 6)

WebRate Limiting is the process of restricting the number of requests for a resource within a specific time window. A service provider offering an API for consumers …

Category:  Health Go Health

Fast Inserts With Entity Framework (EF Core)

WebEF Core 6 & EF Core 7: opens a connection, inserts the whole batch, and disconnects. BulkInsert. EF 6 & EF Core 6 & 7: performs optimized batch insert for the …

Category:  Health Go Health