performance
.NET Performance and Optimization Articles, Tutorials & News
.NET Performance and Optimization articles, tutorials, and news from the DotNetNews archive.
1707 articles Updated Page 2 of 69
Browse additional .NET Performance and Optimization articles from the DotNetNews archive.
.NET Performance and Optimization articles
Page 2 of 69
Newest first
-
Our Retries Took Down the Service: Polly, Timeouts and Retry Storms in .NET
Medium Issue #579
How retry storms happen in .NET, and how to fix them with Polly v8: backoff with jitter, layered timeouts, circuit breakers and graceful…Continue reading on Coffee☕ And Code »
-
The Month-End Report That Took Four Minutes
Medium Issue #579
How a slow RDLC report turned out to be 500 database queries hiding inside a PDF.
-
Runtime async benchmarks: .NET 10 vs .NET 11
Meziantou's blog Issue #578
The previous post showed what runtime async does to the generated IL. This one measures what it does to the numbers. Read the caveats at the bottom before quoting anything here. This is a release cand...
-
Why 1,000 Cache Misses Should Trigger One Load
Medium Issue #578
Inside a .NET Cache — Part 1: coordinating concurrent requests before they become duplicate work.
-
How to Measure Whether a Code Change Makes Your Application Slower
C# Corner Issue #578
Learn how to detect application performance regressions with repeatable baselines, controlled workloads, latency percentiles, throughput measurements, and profiling tools.
-
C# Performance: 12 Hidden Allocations That Can Hurt Your Application
Dotnet on Medium Issue #578
You don’t always see new and immediately think, "That's going to create allocation pressure." Allocations can come from LINQ, closures…Continue reading on Stackademic »
-
One Table or Three? Choosing Between TPH, TPT, and TPC in EF Core
Medium Issue #577
Your inheritance mapping decides your query shape, your constraints, and how painful your next migration will be. Here’s how to choose on…
-
How to Resume a File Processing Job After a Worker Crashes
C# Corner Issue #576
Learn how to build resumable C# file-processing jobs using durable checkpoints, batch commits, idempotency, leases, and retry-safe recovery after worker crashes.
-
💻 Issue 537 - Claude Code Added GZIP in 2026. Why Not Brotli?
Awesome .NET Weekly Issue #576
-
LINQ Performance: 7 Mistakes .NET Developers Make in Production
Medium Issue #576
LINQ makes C# code cleaner and easier to read. But some innocent-looking LINQ queries can introduce performance problems when they reach…
-
HttpClient in .NET 10 - IHttpClientFactory and Resilience
codewithmukesh Issue #576
Use HttpClient in .NET 10 with IHttpClientFactory, keyed and typed clients, and AddStandardResilienceHandler, with real socket and POST retry test results.
-
How to Prevent Duplicate File Processing in a Background Worker
C# Corner Issue #576
Learn how to prevent duplicate file processing in C# background workers using reliable file identity, atomic claims, idempotency, durable status tracking, and failure recovery.
-
.NET 11 Performance: What Got Faster and How to Measure It
C# Corner Issue #576
See where .NET 11 gets its speed, from the JIT and runtime async to LINQ, regex and networking, and how to benchmark those gains on your code before upgrading.
-
Hybrid Search for RAG in .NET 10: BM25 Finds ERR-4012, Vectors Don’t
Medium Issue #575
Vectors buried exact error codes; BM25 missed 37% of paraphrases. RRF plus a reranker took MRR from 0.86 to 0.94, gated in CI, in C#.
-
How to Return Large JSON Responses in ASP.NET Core Without Loading Everything into Memory
C# Corner Issue #574
Learn how to stream large JSON responses in ASP.NET Core with Utf8JsonWriter and IAsyncEnumerable to reduce memory usage when exporting database records.
-
How to Read CBOR Data Incrementally in .NET 11
C# Corner Issue #574
Learn how to read CBOR data incrementally in .NET 11 with CborReader, handle partial input safely, preserve parsing state, and continue when more data arrives.
-
How to Run Background Tasks in ASP.NET Core Without Blocking Requests
C# Corner Issue #573
Learn how to run managed background tasks in ASP.NET Core using BackgroundService, hosted services, and Channel-based queues without blocking API requests.
-
ASP.NET Core Output Caching vs. Response Caching: Which One Should You Use?
C# Corner Issue #573
Compare ASP.NET Core Output Caching and Response Caching, including setup, HTTP cache headers, server-side reuse, and guidance for choosing the right approach.
-
C# Concepts Every .NET Backend Developer Should Know in 2026
Medium Issue #573
A .NET API can feel perfectly fine with a little traffic and then start struggling as the app grows. Queries get slower, outgoing HTTP…
-
What Runtime Async in .NET 11 Changes for C# Developers
C# Corner Issue #573
Explains how async and await work in C# and how to evaluate .NET 11 runtime changes, including tasks, continuations, cancellation, and migration testing.
-
How to Diagnose Memory Leaks in ASP.NET Core Applications in Production
C# Corner Issue #572
Learn how to distinguish normal memory growth from leaks in ASP.NET Core, monitor runtime metrics, collect memory dumps, and identify retained objects in production.
-
Memory-efficient JSON in .NET 10 web APIs with PipeReader
elmah.io Blog - .NET Technical tutorials/guides and new features Issue #571
Deserializing a JSON payload with a million objects strains memory and the garbage collector. .NET 10 adds PipeReader support to System.Text.Json, letting the serializer read straight from a pipeline....
-
How to Trace a Slow API Request with OpenTelemetry in .NET
C# Corner Issue #570
Configure OpenTelemetry tracing in an ASP.NET Core Web API to trace incoming requests, outgoing HTTP calls, and custom operations when investigating slow responses.
-
Configure Initial HTTP/2 Concurrency in .NET 11
C# Corner - Bhavya Singh Issue #569
Learn how to configure SocketsHttpHandler.InitialHttp2MaxConcurrentStreams in .NET 11 to control initial HTTP/2 request concurrency before server settings arrive.
-