Posts

Page 13 of 15

user@runtime:~/blog$ ls -la posts/ --sort=date
entity-framework 2025-09-05 4m

Global Query Filters: Automatic WHERE Clauses in EF Core

How to use EF Core's global query filters for soft deletes, multi-tenancy, and other cross-cutting data filtering concerns.

aspnet-core 2025-09-04 4m

Custom Authentication Handlers in ASP.NET Core

Build custom authentication handlers in ASP.NET Core for API key, HMAC, and token-based authentication schemes.

performance 2025-09-04 4m

ArrayPool<T> and Memory Pooling in .NET

Use ArrayPool<T> and MemoryPool<T> to rent and return buffers, drastically cutting array allocations in high-throughput code.

entity-framework 2025-09-03 4m

Query Splitting: Taming the Cartesian Explosion in EF Core

How EF Core's split queries prevent cartesian explosion when loading multiple related collections, and when to use them.

aspnet-core 2025-09-01 4m

OpenAPI and Swagger Generation in ASP.NET Core

Generate OpenAPI specifications from ASP.NET Core APIs using the built-in OpenAPI support and Swashbuckle, with customisation for schemas, security, and documentation.

performance 2025-09-01 4m

Object Pooling with ObjectPool<T> in .NET

Reduce GC pressure and allocation overhead by reusing objects with Microsoft.Extensions.ObjectPool.

entity-framework 2025-09-01 4m

Change Tracking Deep Dive: How EF Core Knows What Changed

A deep dive into EF Core's change tracker, exploring how it detects modifications, the role of entity states, and strategies for optimising performance.

aspnet-core 2025-08-28 4m

Minimal API Route Groups and Filters in ASP.NET Core

Organise minimal API endpoints with route groups and add cross-cutting behaviour with endpoint filters for validation, logging, and transformation.

aspnet-core 2025-08-25 4m

Problem Details and RFC 9457 in ASP.NET Core

Use the Problem Details standard (RFC 9457) in ASP.NET Core to return consistent, machine-readable error responses from your APIs.

aspnet-core 2025-08-21 4m

Custom Model Binders in ASP.NET Core

Build custom model binders in ASP.NET Core to handle non-standard parameter formats like comma-separated lists, composite keys, and smart parsing.

aspnet-core 2025-08-18 4m

Content Negotiation in ASP.NET Core

How ASP.NET Core selects response formats using content negotiation, and how to add custom formatters for XML, CSV, and other media types.

aspnet-core 2025-08-14 4m

API Versioning Strategies in ASP.NET Core

Implement URL, query string, header, and media type API versioning in ASP.NET Core using the Asp.Versioning packages.

csharp 2025-08-12 4m

Implicit Indexer Access in Object Initialisers

C# 13 allows the implicit 'from the end' index operator (^) inside object initialisers, completing index expression support.

aspnet-core 2025-08-12 4m

Kestrel Configuration in ASP.NET Core

Configure Kestrel — ASP.NET Core's built-in web server — for endpoints, HTTPS, limits, and production readiness.

aspnet-core 2025-08-11 4m

Polly Resilience Pipelines in ASP.NET Core

Build fault-tolerant HTTP calls using Polly v8 resilience pipelines with retry, circuit breaker, timeout, and rate limiter strategies.

aspnet-core 2025-08-08 4m

Rate Limiting Middleware in ASP.NET Core

Protect your ASP.NET Core APIs from abuse using the built-in rate limiting middleware with fixed, sliding, token bucket, and concurrency limiters.

csharp 2025-08-08 4m

The \e Escape Sequence: First-Class Terminal Escape Codes in C#

C# 13 adds the \e escape sequence for the ESC character, making ANSI terminal formatting cleaner and less error-prone.

aspnet-core 2025-08-07 4m

Typed HttpClient with HttpClientFactory in ASP.NET Core

Use IHttpClientFactory and typed clients to manage HTTP connections properly, avoiding socket exhaustion and DNS staling.

csharp 2025-08-05 4m

The Lock Object: A Purpose-Built Synchronisation Primitive

C# 13 introduces System.Threading.Lock, a dedicated type for the lock statement that improves performance and clarity.

aspnet-core 2025-08-05 4m

Environment-Based Configuration in ASP.NET Core

Configure your ASP.NET Core application differently for Development, Staging, and Production using environment-aware settings.

aspnet-core 2025-08-04 4m

Background Services with IHostedService and BackgroundService

Build long-running background tasks in ASP.NET Core using IHostedService and BackgroundService, with patterns for queued work, timed execution, and graceful shutdown.

csharp 2025-08-01 4m

Partial Properties: Completing the Partial Story

C# 13 extends partial members to include properties and indexers, enabling cleaner source generator patterns.

aspnet-core 2025-08-01 4m

Response Compression Middleware in ASP.NET Core

Reduce bandwidth and improve load times by enabling response compression with Brotli and Gzip in ASP.NET Core.

aspnet-core 2025-08-01 4m

Custom Middleware Patterns in ASP.NET Core

How to build convention-based and factory-based middleware in ASP.NET Core, including branching, short-circuiting, and testability patterns.

aspnet-core 2025-07-29 3m

Output Caching in ASP.NET Core

Use ASP.NET Core's output caching middleware to cache entire responses and dramatically reduce server load.