Add inbound in-flight request deduplication to gateway runtime#2118
Draft
Add inbound in-flight request deduplication to gateway runtime#2118
Conversation
…equests Co-authored-by: kamilkisiela <8167190+kamilkisiela@users.noreply.github.com>
Co-authored-by: kamilkisiela <8167190+kamilkisiela@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add inbound request deduplication for router runtime
Add inbound in-flight request deduplication to gateway runtime
Mar 17, 2026
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.
This introduces router-runtime style inbound request deduplication for concurrent identical GraphQL requests. The runtime now coalesces matching in-flight query operations so joiners reuse the leader execution result instead of re-executing.
Config surface
inboundRequestDeduplicationto runtime config:true | false{ enabled?: boolean; headers?: 'all' | 'none' | { include: string[] } }Inbound dedupe implementation
useInboundRequestDeduplicationplugin and wired it intocreateGatewayRuntime.onParamslevel with atomic in-flight key claiming.queryoperations (mutations are excluded).Schema-change safety
onSchemaChange.Focused coverage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
rover.apollo.dev/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node ./install.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.