Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[AI-Suggested] Content update request from UUF signal: Rate limiting middleware in ASP.NET Core | Microsoft Learn

Aperta Adatta ai principianti
#38,001 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
documentation

Direzione di ricerca

Leggi aspnetcore/performance/rate-limit.md, in particolare i paragrafi introduttivi, la sezione Use rate-limiting middleware e il suo primo esempio di codice. Aggiungi la spiegazione richiesta sui contatori per istanza e sui limiti a livello di cluster, con un rimando vicino all’esempio. Il lavoro è completo quando entrambi i punti sono chiari ai lettori dell’articolo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

:watch: Not Triaged CAC

Documentation Update: Rate limiting middleware in ASP.NET Core | Microsoft Learn

Customer Feedback

Page: Rate limiting middleware in ASP.NET Core | Microsoft Learn
Source File: https://github.com/dotnet/AspNetCore.Docs/blob/live/aspnetcore/performance/rate-limit.md

Summary

Clarify that ASP.NET Core’s built-in rate limiting middleware maintains counters per app instance by default, so limits are not enforced cluster-wide in multi-instance/load-balanced deployments unless a shared/distributed counter is introduced.

Suggested Fixes

Instructions for Copilot: Copilot should only fix suggestions with a checkmark and do not make any updates for unchecked suggestions.

[!NOTE]
Suggestions are generated by AI and they should be reviewed by human before assigning it to Copilot. Please uncheck the ones you don't want Copilot to work on. Then assign this issue to Agent (GitHub Copilot). When assigning it to Copilot you can enter additional instructions under "Optional Prompt" dialog.

  • In the introductory area of the article (immediately after the first paragraph that introduces Microsoft.AspNetCore.RateLimiting, and/or at the start of the Use rate-limiting middleware section), add a prominent note explaining the per-instance nature of the built-in middleware and the impact under load balancing. Include explicit wording about limits multiplying by instance count and point readers to external, centralized enforcement if they need cluster-wide throttling. For example:

    Important (multi-instance deployments): The built-in ASP.NET Core rate limiting middleware tracks limits within a single app instance/process. In a load-balanced or scaled-out deployment (multiple instances), each instance enforces its own counters, so the effective limit can be approximately N × configured limit (where N is the number of instances) if requests are distributed across instances. If you need cluster-wide limits, enforce throttling at a shared layer (for example, an API gateway/WAF/CDN) or implement a distributed/shared counter mechanism.

    Also add a short cross-reference near the first code sample in Use rate-limiting middleware noting that the example is per-instance and does not provide distributed enforcement.


📚 To learn more about agentic content maintenance workflow, visit Agentic workflow for Learn content maintenance. Sign in using Learn Profile to access the content on this link.

💬 Share your feedback on the Learn Content Maintenance Agentic Workflow here.

Lingua principale
C#
Stelle
13.1k
Fork
24.5k
Merge medio
2g 15h
PR unite (30g)
159

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/AspNetCore.Docs

Tutte le issue di dotnet/AspNetCore.Docs

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.