Repository navigation
docs: describe request admission and rate limiting in ARCHITECTURE.md - #480
Merged
maralbahari merged 2 commits intoOct 26, 2026
Merged
Conversation
Follow-up to vllm-project#458. Documents rate_limit.rs, error_response.rs and server_settings.rs, and the admission order on protected routes: OIDC authentication runs before rate-limit admission, so the limiter keys a bucket by the verified principal whenever there is one. Signed-off-by: Zheng Lu <[email protected]>
Zheng-Lu
requested review from
bbrowning,
franciscojavierarceo,
haoshan98,
jiahuei,
leseb,
maralbahari,
noobHappylife,
qandrew and
tjtanaa
as code owners
October 23, 2026 15:07
maralbahari
approved these changes
Oct 26, 2026
haoshan98
added a commit
to EmbeddedLLM/agentic-api
that referenced
this pull request
Oct 27, 2026
Brings in vllm-project#480 (ARCHITECTURE.md request admission and rate limiting), vllm-project#481 (PostgreSQL conversation upsert), vllm-project#467 (prompt cache breakpoints on inlined text files), vllm-project#478 (benchmark session sweep) and vllm-project#487 (test alignment with typed Responses validation). Merged without conflicts. Signed-off-by: haoshan98 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #458, as requested in @maralbahari's approval: #458 (review). Documentation only.
ARCHITECTURE.mdnow describes:require_oidc), then rate-limit admission (enforce_rate_limit), then the retrieval-only API-key check, then the handler. Authentication comes first because the limiter keys a bucket by the verified principal whenever there is one. The section also explains why the rate-limitroute_layeris added before the OIDC one, and which routes sit outside both layers.rate_limit.rs(new section): GCRA buckets, keys (OIDC principal, otherwise the peer address with IPv6 grouped by /64; never unverified credentials or forwarded-for headers), theMAX_KEYSand overflow bound, the retry hints, and the per-frame WebSocket charge throughRateLimitCharge.error_response.rs(new section):GatewayErrorand the OpenAI or Anthropic envelope chosen byErrorFormat::for_path, used for authentication failures and rate limits.server_settings.rs: the[server]admission settings and their CLI > environment > file > default resolution.rate_limitis added to the library exports and the gateway's module table;server.rsserves with connect info;auth.rsmentionsrequire_api_key;Test Plan
mainat a7dc7b5:build_router_with_auth;RateLimitKey::for_caller;LimiterState;RateLimitCharge::checkpath, which sends an error event and keeps the connection open;server_settings::resolve_rate_limit_values.pre-commit run --files ARCHITECTURE.mdpasses.