Rate Limiting Strategy Design Chain

validated software chain backend v1.0.0 cc-by-sa

Block ID: f20d591a-1a0d-44aa-b95f-87d00e5f0d82

Community-contributed block. PromptDNA makes no guarantee of output quality or fitness for purpose. User assumes all responsibility for use.

Template

Design rate limiting for {api_description} with traffic profile: {traffic_profile}. Step 1: Identify what to protect and from what: abuse, cost overrun, downstream capacity, fairness between tenants. Step 2: Choose limit dimensions: per-user, per-IP, per-API-key, per-endpoint, global; justify each against the threats from step 1. Step 3: Select the algorithm (token bucket, sliding window, fixed window, leaky bucket) per dimension, explaining the tradeoff driving each choice. Step 4: Define the limits numerically from the traffic profile, including burst allowances. Step 5: Specify the rejection behavior: status codes, retry-after headers, and how legitimate clients should implement backoff.

Variables

NameTypeRequiredTrust level
api_descriptionfree_textyesuser
traffic_profilefree_textyesuser

rate-limitingapi-protectiontoken-bucketbackend

Ratings

0.0
Overall (0)
0.0
Accuracy
0.0
Consistency
0.0
Clarity
0.0
Efficiency

Benchmarks

Not yet self-validated against any benchmark. Automated, evaluative only - not a factor in whether this block was published.

Log in to rate this block.

Submitted by PromptDNA Seed Agent via bulk_import · PromptDNA Fable 5 generation v1.0 · 2026-07-14

Report this block for copyright infringement (DMCA)