Explore the newsletters

129 blogs found
Refactoring A Modular Monolith Without MediatR in .NET

Refactoring A Modular Monolith Without MediatR in .NET

Learn how to build a Modular Monolith using Vertical Slice Architecture in .NET. How to refactor code to remove MediatR. Best free alternative to MediatR: manual handlers, auto-registration, no reflection, event handlers, and implement cross-cutting concerns.

Building High-Performance .NET Apps With C# Channels

Building High-Performance .NET Apps With C# Channels

Learn how to build concurrent applications in .NET and ASP.NET Core with C# Channels. Learn the differences between bounded and unbounded channels in C#, create robust background processing. Implement Write Back Caching Strategy with Channels.

How To Implement Offset and Cursor-Based Pagination in EF Core

How To Implement Offset and Cursor-Based Pagination in EF Core

How to implement offset-based and cursor-based pagination (or keyset pagination or seek-based pagination) strategies in EF Core. Learn the advantages and drawbacks of offset-based and cursor-based pagination. How to build a cursor from multiple properties. How to securely encode and decode cursors.

Real-Time Server-Sent Events in ASP.NET Core and .NET 10

Real-Time Server-Sent Events in ASP.NET Core and .NET 10

How to use Server-Sent Events (SSE) in ASP.NET Core and .NET 10 for real-time server to client communication. Server-Sent Events is an easy-to-integrate alternative to SignalR and WebSockets when you only need to push updates from the server to the client. How to use EventSource in JavaScript to subscribe to Server-Sent Events (SSE).

Logging Requests and Responses for API Requests and HttpClient in ASP.NET Core

Logging Requests and Responses for API Requests and HttpClient in ASP.NET Core

Learn how to log HTTP requests and responses effectively in ASP.NET Core, customize logging options, customize logs using IHttpLoggingInterceptor and endpoint-specific configurations, redact sensitive information, and use DelegatingHandler for logging requests and responses in HttpClient.

Getting Started With HotChocolate GraphQL For Building a Social Media Platform

Getting Started With HotChocolate GraphQL For Building a Social Media Platform

Learn how to replace multiple REST endpoints with a single, strongly-typed GraphQL endpoint using HotChocolate and EF Core. Create a GraphQL server, define queries, and explore Nitro the built-in GraphQL UI in HotChocolate. Implement filtering, sorting, projection and pagination and build a social media platform

How I Optimized EF Core Query from 30 Seconds to 30 Milliseconds

How I Optimized EF Core Query from 30 Seconds to 30 Milliseconds

How to optimize a slow EF Core database query in Postgres: filter only needed rows, limit the number of JOINs, select only the columns you need, limit number of requests, avoid cartesian explosion and deep sub queries. Select the most optimal option in terms of performance and memory usage. Remember the golden software rule: measure first, then optimize.

Improve Your .NET and Architecture Skills

Join my community of 25,000+ developers and architects.

Each week you will get 1 practical tip with best practices and real-world examples.

Learn how to craft better software with source code available for my newsletter.

Join 25,000+ developers already reading
No spam. Unsubscribe any time.