HTTP rate-limit identity key

A rate-limit identity key identifies the client or principal whose requests should share a rate limit. A server may derive it from an authenticated user ID or a trusted network address, but must not blindly trust client-controlled identity headers.

Learn this concept

Lesson 1.16 · net/http handlers and middleware

Used in exercises

Exercise 1.18 · RateLimit HTTP middleware that returns 429 Exercise 3.24 · POST /v1/auth/login: rate limit attempts Exercise 6.11 · Browse and order k6 scripts
Prerequisite conceptsHTTP handlerHTTP middleware