Hi! I have been a .NET developer since 2016, mostly on the backend. Most of my work is about data: moving it, storing it and reading it back. And then a date shows up. The bug We had a UI used by people from different time zones. One of its main features was filtering the …
Author: Friedrich E.
Zstandard for ASP.NET Core Response Compression
One of the easiest methods to lower the volume ofResponse compression is one of the simplest ways to reduce the amount of data an ASP.NET Core application sends over the network. Smaller responses mean less bandwidth, faster transfers, and lower network overhead. Most ASP.NET Core applications already use compression through Brotli or Gzip. Zstandard, commonly …
What Does.NET 11 Offer? A Developer’s Guide to the Most Recent Version?
Microsoft has officially released.NET 11, bringing another major set of improvements to the .NET ecosystem. .NET 11 was released on November 10, 2026, and is available for Windows, Linux, and macOS. The release includes improvements across the .NET Runtime, SDK, libraries, ASP.NET Core, Blazor, Entity Framework Core, .NET MAUI, Windows Forms, WPF, and the C# …
Building Reliable Background Jobs in ASP.NET Core With Idempotency and Retry Handling
In business applications, background occupations are typical. An application could have to handle uploaded documents, send hundreds of emails, provide reports, synchronize customer information, or update other systems. It is seldom a smart idea to carry out all of this work within one HTTP request. In addition to consuming request-handling resources and increasing response times, …
How to Determine Whether Your Application Is Slower After a Code Change?
A code modification may increase functionality at the expense of an application’s speed. Response times may rise without any evident issues due to a new database query, an extra API call, a more complicated computation, or an unneeded object creation. During development, these performance regressions are not always apparent. When hundreds of requests pour in …
How Can I Use OpenTelemetry in .NET to Track a Slow API Request?
Have you ever gotten a bug report stating that an API is responding slowly, but you are unable to identify the cause of the delay? Before providing a response, the request may take some time to run application code, wait for a database query, call another API, or process data. You cannot determine which component …
How to Use External HTTP API Mocking in .NET Integration Tests?
Seldom do applications operate alone. To fulfilll a request, an ASP.NET Core API may contact an identity provider, an inventory service, a payment gateway, or another internal API. The reliability of integration tests may be compromised by these additional dependencies. If an external system produces different data than anticipated, a network connection times out, or …
Using OpenTelemetry to Gather and Export EF Core Performance Metrics
Monitoring application performance is essential for catching database bottlenecks before they impact users. Entity Framework Core (EF Core) exposes performance data natively through the standard .NET System.Diagnostics.Metrics API under the meter name Microsoft.EntityFrameworkCore. By integrating this meter with OpenTelemetry, you can automatically track active database connections, query volumes, and compiled query cache performance across your …
ASP.NET Master Resource-Based Authorization Fundamentals: Ensuring Record Ownership
Real-world applications frequently need more precise control, even while Role-Based Authorization manages broad access levels like Admin or User. What happens if access is contingent on a number of factors, such as the user’s age, location, or ownership of the particular resource they are attempting to modify? ASP.NET Core offers Policy-Based Authorization for these complex …
A Small Decision That Determines Whether Your Code Can Be Tested: Interface or Concrete Class in DI Registration
Lifetime selection Singleton, Scoped, or Transient usually receives the most attention when examining Dependency Injection configurations. Alongside it comes a less noticeable but no less significant detail: whether the registration registers a concrete class independently or translates an interface to an implementation. Although this decision seldom results in an obvious flaw, it may have a …