Sunday, November 8, 2026 stories of the day

Stories

9 stories
ASP.NET Core
Per-IP rate limits
DVDEV Community: #aspnetcore Eduardo Teixeira Nov 7

Rate limiting Minimal APIs with .NET's built-in middleware

A walkthrough of adding per-IP rate limiting to a Minimal API using the middleware that has shipped with .NET since version 7. It covers naming a fixed window policy, returning 429 with a Retry-After header, excluding health checks, integration testing with WebApplicationFactory, and the multi-instance and reverse proxy pitfalls that break limits in production.

Mongo → SQL
Toggle at the seam
DVDEV Community: #dotnet Tummala Krishna Kishore Nov 7

Put the Mongo-to-SQL toggle at the contract, not inside the shared package

When one team owns MongoDB and another owns SQL behind the same Azure Function App, the obvious if (useSql) belongs at a narrow storage contract, not inside the shared package. The author lays out one DI registration that reads the flag, per-deployment-slot switching, contract tests for both implementations and shadow reads instead of dual writes.

.NET 10
Priority pushes
DVDEV Community: #csharp MICHAEL-MAURICE Nov 7

A naive .NET notification fan-out buried a safety alert behind 40 likes

A made-up but realistic post-mortem shows how a naive .NET notification loop buried a P0 safety alert behind forty like pushes, with no crash and no exception. The fix adds priority lanes on the event, a leased priority queue, ingest-side batching, a visible P0 bypass in the preference router and a channel adapter outside the hot path.

.
Security
ABASI Backbone Learning Christopher D. Cavell Nov 7

Passing Authentication Does Not Make Input Trustworthy

A whole authenticated request can still be wrong: only the subject comes from the validated token, while identifiers, quantities, prices and status are just claims the client typed. The article walks through five authenticated failures in a wholesale ordering API and the habit that fixes all of them: assign each request field to an owner and let nobody else set it.

Data
Data
HBHabr C# (ru) gandjustas Nov 6

A modular data model in EF Core: one DbContext from many modules

Instead of giving each module its own database or DbContext, a modular monolith can assemble one EF Core model from every module's IEntityTypeConfiguration classes. The author compares four data layouts on .NET 10 and shows that only the single-model option keeps SQL JOINs and one SaveChanges across modules. In his benchmark the database-side join served 12% more requests than the HTTP-based one.

Feedback

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

Type of message