Repository navigation
SSR cache: name parked nodes to the consumer, keep found profile lists longer - #134
Conversation
…s longer Every /private-api/ssr/rpc answer now carries X-Ssr-Node-Parks with the nodes the cache's client is keeping out of rotation and for how long, so the web tier's fallback can skip them instead of drawing its own 429s from the same nodes. bridge.get_profiles answers that found the account are kept for an hour instead of a minute: a post render reads the author's profile list, and the same author repeats across renders well beyond a minute. An empty list keeps the short TTL. get_profile and the post reads stay short.
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoExpose parked SSR nodes and extend TTL for found profile lists
AI Description
Merge Risk
|
[Medium impact] The PR appears safe to merge; no actionable issues remain in the reviewed changes. SummaryThe PR adds
Reviews (3) · Last reviewed commit: "Keep a profile list long only when it na..." · Reviewed by Greptile |
Code Review by Qodo
1. Fallback retries parked nodes
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
A failure park follows the cache's own short per-node timeouts; the web tier falls back with longer ones and may still get an answer from that node, so only nodes throttling this address are named.
A node leaves out an account it does not know yet; the list is cached under one key, so a partial answer keeps the short TTL.
What
Two changes to the internal SSR read-through cache (
/private-api/ssr/rpc):X-Ssr-Node-Parks: authority=ms,..., listing the nodes the cache's own client has parked for rate limiting and for how long. Failure parks are left out, because they follow the cache's own short per-node timeouts, and a consumer with longer timeouts may still get an answer from that node. The web tier falls back to its own node pool when the cache cannot answer. With this header, that fallback can skip nodes the cache already knows are throttling, instead of learning it again with a request of its own. The route is secret-gated, and the header is absent when every node is available.bridge.get_profilesanswers that contain the account are cached for an hour instead of a minute. A post render reads its author's profile list, and the same author repeats across renders well past a minute. An empty answer (an account a node does not know yet) keeps the short TTL.What does not change
bridge.get_profilestays short, because the full-account read cross-checks it againstcondenser_api.get_accounts, and the two must stay equally fresh.Tests
get_profilesanswer.get_profileshas a long TTL.Summary by CodeRabbit
X-Ssr-Node-Parksheader showing nodes temporarily parked due to rate limits and their remaining park durations. The header is omitted when no nodes are rate-limit parked.