Skip to content

docs: clarify rate limit fingerprint behavior - #837

Merged
davidmytton merged 4 commits into
mainfrom
rei/rate-limit-fingerprint-guidance
Jul 23, 2026
Merged

docs: clarify rate limit fingerprint behavior#837
davidmytton merged 4 commits into
mainfrom
rei/rate-limit-fingerprint-guidance

Conversation

@arcjet-rei

Copy link
Copy Markdown
Contributor

Summary

Clarifies that multiple rate-limit characteristics are combined into one composite fingerprint rather than independent counters.

Adds guidance to use separate rate-limit rules when independent counters are needed, such as a user/account quota plus per-IP throttling.

Calls out the shared-IP and IP-rotation tradeoffs for authenticated traffic, and updates the llms-full reference plus markdown endpoint snapshots.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arcjet-docs Ready Ready Preview, Comment Jul 23, 2026 10:40pm

Request Review

@arcjet-rei

Copy link
Copy Markdown
Contributor Author

@davidmytton when you get a moment, take a look at the (Codex-suggested) wording here and let me know if / how I should dial it in.

@arcjet-rei
arcjet-rei requested a review from davidmytton June 23, 2026 22:12

@davidmytton davidmytton left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep makes sense

@davidmytton

Copy link
Copy Markdown
Collaborator

What are we waiting on to merge this @arcjet-rei ?

@davidmytton davidmytton reopened this Jul 16, 2026
arcjet-rei and others added 2 commits July 23, 2026 20:44
Co-authored-by: Codex <codex@openai.com>
@davidmytton
davidmytton force-pushed the rei/rate-limit-fingerprint-guidance branch from 2be1791 to ac3a946 Compare July 23, 2026 21:23
@davidmytton
davidmytton marked this pull request as ready for review July 23, 2026 21:24

@arcjet-review arcjet-review Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arcjet Review — 🟢 Low Risk

Decision: Approved

Rationale: Documentation-only PR that adds clarifying prose and a code example to explain how multiple rate-limit characteristics combine into a single fingerprint, plus guidance to configure separate rules for independent limits. No application code, dependencies, infra, or auth logic is modified. Snapshot test files are updated to match the new docs content. No security-review concerns apply — the added TS example is illustrative and follows standard SDK usage (reads ARCJET_KEY from env, no hardcoded secrets).

Summary of Changes

Docs update explaining that Arcjet rate-limit characteristics combine into one fingerprint (not separate counters), with an example showing how to configure two independent fixedWindow rules (one per userId, one per ip.src). Adds matching notes to fingerprints.mdx, rate-limiting/index.mdx, and llms-full.txt, and refreshes the corresponding snapshot files.

Notes

Docs-only change (~40 lines of real content plus generated snapshots), well under the size threshold.

Review: 9b856154 | Model: anthropic/claude-opus-4-7 | Powered by Arcjet Review

Comment thread tests/llms-txt.test.ts-snapshots/rate-limiting-chromium-darwin.md
Comment thread src/content/docs/rate-limiting/index.mdx
- Raise the per-IP rule's `max` from 20 to 1000 in the two-rule example so
  the aggregate IP throttle sits clearly above the 100/min per-user quota.
  A per-IP cap below the per-user quota could block legitimate authenticated
  users behind shared IPs (NAT, mobile carriers, offices) before they reach
  their own limit.
- Fix the per-page markdown (`.md`) extractor so Expressive Code blocks render
  as clean fenced blocks with their language annotation. Turndown was
  concatenating the line-number gutter into the code (e.g. `1import …2const …`);
  the new rule reconstructs each line from its `.code` element only.

Regenerated the affected `-linux.md` llms-txt snapshots. Screenshot (.png)
snapshots are regenerated separately on CI via playwright-update.yml.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@davidmytton
davidmytton enabled auto-merge July 23, 2026 22:47
@davidmytton
davidmytton added this pull request to the merge queue Jul 23, 2026
Merged via the queue into main with commit 97c95f4 Jul 23, 2026
11 checks passed
@davidmytton
davidmytton deleted the rei/rate-limit-fingerprint-guidance branch July 23, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants