Name the resource your rate limit protects
A request counter becomes more useful when its scope matches the work being controlled.
The unit matters
Ten inexpensive reads and ten export jobs can have very different effects. A single global request count may be easy to implement while poorly representing the resource the service needs to protect.
RFC 6585 defines the HTTP 429 response for excessive request rates and allows a Retry-After indication. It leaves questions such as user identification and counting scope to the server. Those choices belong in the application’s design.
Use an explicit policy record
We suggest documenting the protected resource, counting identity, time window, burst allowance and expected client response. Include the scope of aggregation: one process, a region, an account or a whole service. A limit that exists independently on every worker has different behavior from one shared across a fleet.
For costly asynchronous operations, record how admission limits relate to concurrency and queue capacity. Returning a successful enqueue response does not make the eventual work inexpensive.
Review recovery behavior
Decide how well-behaved clients should resume after rejection and how operators recognize persistent saturation. Keep permission failures distinct from temporary rate limits. A caller should not need to guess whether waiting can make an unauthorized action acceptable.