Skip to content

feat(coprocessor): Support per-stage coprocessor URLs#8384

Merged
BrynCooke merged 2 commits intodevfrom
cgati/coprocessor-config
Oct 14, 2025
Merged

feat(coprocessor): Support per-stage coprocessor URLs#8384
BrynCooke merged 2 commits intodevfrom
cgati/coprocessor-config

Conversation

@cgati
Copy link
Contributor

@cgati cgati commented Oct 7, 2025

Adds the ability to configure different coprocessor URLs for each stage of request/response processing (router, supergraph, execution, subgraph). Each stage can now specify its own url field that overrides the global default URL.

Changes:

  • Add optional url field to all stage configuration structs
  • Update all stage as_service methods to accept and resolve URLs
  • Add tests for URL validation and per-stage configuration

Maintains full backward compatibility - existing configurations with a single global URL continue to work unchanged.


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • PR description explains the motivation for the change and relevant context for reviewing
  • PR description links appropriate GitHub/Jira tickets (creating when necessary)
  • Changeset is included for user-facing changes
  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Metrics and logs are added3 and documented
  • Tests added and passing4
    • Unit tests
    • Integration tests
    • Manual tests, as necessary

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices.

  4. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

@cgati cgati requested a review from a team October 7, 2025 21:36
@apollo-cla
Copy link

@cgati: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@apollo-librarian
Copy link

apollo-librarian bot commented Oct 7, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 1 changed, 0 removed
* graphos/routing/(latest)/customization/coprocessor.mdx

Build ID: 3fb2879470f5e12606dbc8c5
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/3fb2879470f5e12606dbc8c5

@github-actions

This comment has been minimized.

@cgati cgati force-pushed the cgati/coprocessor-config branch 3 times, most recently from bc5776a to 406e7ec Compare October 8, 2025 22:23
@cgati cgati requested a review from a team as a code owner October 8, 2025 22:23
@cgati cgati force-pushed the cgati/coprocessor-config branch from 406e7ec to f4f2ae4 Compare October 9, 2025 17:42
Copy link
Contributor

@bnjjj bnjjj left a comment

Choose a reason for hiding this comment

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

LGTM but could you apply suggestions made for docs ?

@smyrick
Copy link
Member

smyrick commented Oct 10, 2025

Resolves #2821

@cgati cgati force-pushed the cgati/coprocessor-config branch 2 times, most recently from 839d14b to 2f10e3e Compare October 13, 2025 15:07
Adds the ability to configure different coprocessor URLs for each
stage of request/response processing (router, supergraph, execution,
subgraph). Each stage can now specify its own `url` field that
overrides the global default URL.

Changes:
- Add optional `url` field to all stage configuration structs
- Update all stage `as_service` methods to accept and resolve URLs
- Add tests for URL validation and per-stage configuration

Maintains full backward compatibility - existing configurations with
a single global URL continue to work unchanged.
@cgati cgati force-pushed the cgati/coprocessor-config branch from 2f10e3e to 75ec851 Compare October 13, 2025 15:15
@BrynCooke BrynCooke merged commit f88bb38 into dev Oct 14, 2025
15 checks passed
@BrynCooke BrynCooke deleted the cgati/coprocessor-config branch October 14, 2025 09:21
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.

5 participants