[CU-86b7p1xgv] Add --local-federated flag to bypass Explorer federation bottleneck #130
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
--local-federatedflag toexplorer questions askcommand to bypass federation bottleneckProblem
When concurrent requests to federated questions overwhelm the Explorer service, circuit breakers and connection timeouts cause failures. This happens because Explorer's federation layer becomes a bottleneck when coordinating responses from multiple publishers with queuing systems.
Solution
The
--local-federatedflag enables direct parallel queries to each collection, bypassing the Explorer federation layer. This allows workloads to proceed while the long-term solution (converting Explorer's federated API to use Data Connect-style streaming responses) is implemented.Implementation Details
/api/collections/{slug}/questions/{questionId}/queryTesting
Example Usage
dnastack explorer questions ask \ --question-name allele-frequency \ --param position=64314563 \ --param chromosome=chr15 \ --collections "yFAS-2e200380-a0da-464e-8554-663fa485965c,Lu0K-cd1cdf5a-1cb0-4b47-bf52-d365f928a1b4" \ --local-federatedNotes
🤖 Generated with Claude Code