Rate Limiting
Limitação de Taxa
A limitação de taxa controla solicitações permitidas ou ações custosas para uma identidade, chave ou período de tempo.
Outro exemplo
Depois de muitas tentativas de login com falha, novas tentativas ficam mais lentas. Um usuário real ainda pode usar a recuperação de conta.
Partes principais
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Use-o quando
Use cotas visíveis para reduzir abusos, ataques de força bruta e sobrecarga por engano.
Não o use quando
Nunca use um limite global que bloqueie injustamente redes compartilhadas ou chamadas críticas.
Nome usado no código
429 Too Many Requests Antes de lançar
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Limitação de Taxa (Rate Limiting). User context: Depois de muitas tentativas de login com falha, novas tentativas ficam mais lentas. Um usuário real ainda pode usar a recuperação de conta. Technical concept or control: Limitação de Taxa (Rate Limiting). Why it fits: Use cotas visíveis para reduzir abusos, ataques de força bruta e sobrecarga por engano. Do not use it when: Nunca use um limite global que bloqueie injustamente redes compartilhadas ou chamadas críticas. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Nenhum padrão oficial único controla todo o termo. Seu significado pode mudar entre equipes, plataformas ou frameworks. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Conferir este pedido
Review how Limitação de Taxa (Rate Limiting) is used now. Definition: A limitação de taxa controla solicitações permitidas ou ações custosas para uma identidade, chave ou período de tempo. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.