ASP.NET Core
news

64stories

Stories

ASP.NET Core
ASP.NET Core
BABenjamin Abt mail@benjamin-abt.com (BEN ABT) Nov 3

Production Rate Limiting in ASP.NET Core

A production rate-limit policy should start from the resource that saturates first, not from an algorithm. Benjamin Abt shows how to layer concurrency and time-based limits, choose partition keys that are safe as well as fair, order the middleware, and judge what in-memory state can and cannot promise once the app scales out.

.NET 10
Slices or layers?
CWMukesh Murugan (codewithmukesh) Mukesh Murugan Oct 29

Vertical Slice vs Clean Architecture in .NET 10: the hybrid layout

The author compares Vertical Slice and Clean Architecture on the same Product API in .NET 10, counting the files each layout touches for one new feature. He then presents a hybrid layout that keeps the Domain project, drops the Application project, and groups endpoints by feature. It is a practical reference for teams deciding how to structure a Web API.

ServiceComposer
Typed models, no shared code

ServiceComposer: strongly typed view models without shared coupling

Mauro Servienti examines how strongly typed view models in ServiceComposer can reintroduce the coupling that ViewModel Composition is meant to remove. He proposes per-service interfaces for response models and per-service request models for decomposition, and discusses a DispatchProxy idea that would drop the concrete class. Read on for the trade-offs and deployment caveats, including property name collisions.

.NET 10
Directory data isn't yours
HBHabr C# (ru) Nurlan-Turkpenbay Oct 27

DDD in an LDAP web console: what worked, what was cut, and why tests guard layers

Axia is an open-source .NET 10 web console and REST API for Active Directory and OpenLDAP. Its author explains why half of the initial DDD design was dropped after several security reviews. The article covers what paid off, including value objects, ports and adapters, and architecture tests, and what was replaced, such as domain-event auditing.

HybridCache
Pick the right cache
ADAnton DevTips Anton Martyniuk Oct 27

All Types of Caching in .NET: When to Use Each (Part 1)

Anton Martyniuk's new deep dive maps the caching options in .NET, from IMemoryCache and IDistributedCache with Redis to HybridCache, and explains when each one fits. It stresses that caching should come after fixing slow queries, and shows how a per-process cache can serve stale data once an API runs on several instances. Worth reading before you choose a cache for a scaled ASP.NET Core app.

ASP.NET Core
Body can't be read twice
DVDEV Community: #aspnetcore Sukhpinder Singh Oct 27

Reading the request body in middleware leaves handlers with an empty body

Reading the request body in logging middleware can leave the endpoint handler and model binding with an empty body. The author reproduces the problem with a 61-byte JSON POST and shows how EnableBuffering plus a position reset fixes it. A pitfall every ASP.NET Core developer who logs payloads should know.

ASP.NET Core
Shed load under pressure
ISIrina Scurtu Irina Dominte(Scurtu) Oct 27

Load Shedding: Dropping Requests to Save Your System

The author explains how traffic spikes and client retries can tip a service over, and why rate limiters and circuit breakers do not fully solve it. Load shedding, which drops requests based on current system health, is presented as the missing piece. The article walks through ASP.NET Core and Kestrel ideas for shedding early and by endpoint priority, useful for anyone running public APIs.

GraphQL.NET
Flexible data queries
DVDEV Community: #aspnetcore Lincoln Zocateli Oct 26

GraphQL for Beginners: A .NET 10 Guide with GraphQL.NET

This beginner guide explains GraphQL schemas, queries, mutations and resolvers and builds a working endpoint with GraphQL.NET on ASP.NET Core and .NET 10. It compares the same product read with a REST endpoint and shows how validation errors come back as HTTP 200 with an errors array. Useful for .NET teams weighing GraphQL, especially the server-side duties it adds.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message