Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Subscription schema check in ApolloFederationDriver #2879

Open
1 task done
erikwrede opened this issue Jun 21, 2023 · 15 comments
Open
1 task done

Remove Subscription schema check in ApolloFederationDriver #2879

erikwrede opened this issue Jun 21, 2023 · 15 comments
Labels

Comments

@erikwrede
Copy link

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Apollo's Federation Router now brings support for subscriptions: https://www.apollographql.com/docs/router/executing-operations/subscription-support

Consequently, the exception that is thrown when building a schema with subscriptions should be removed from ApolloFederationDriver to make it fit for use with the new router.

Subgraph recently implemented subscription support, so this already good for release: apollographql/federation#2388

Describe the solution you'd like

see above

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

Make subscriptions available in federation

@erikwrede
Copy link
Author

Happy to provide a PR for this small change if the following preferences are clear:

  • Do you prefer Version Bump of the @apollo/subgraph dependency or runtime checks to ensure the subgraph version supports subscriptions?

@kamilmysliwiec
Copy link
Member

We'd prefer runtime checks to ensure the subgraph version supports subscriptions.

PRs are more than welcome 🙌

@magnusottosson
Copy link

Any progress on this issue?

@vladm0289
Copy link

vladm0289 commented Sep 5, 2023

@kamilmysliwiec, @erikwrede could you please answer to us guys about progress please if it possible. I’m looking forward using this feature. Thanks in advance.

@erikwrede
Copy link
Author

@vladm0289 I have done some preliminary work in #2916 which has been ready for review for some time now. I will continue once that is merged as it includes some dependency updates necessary for the tests of the latter and ensures the development goes in the direction the maintainers of this library envision.

@vladm0289
Copy link

vladm0289 commented Sep 6, 2023

@erikwrede thank you very much for your work and contribution to our community. It is very important and valuable labor for all of us.
@kamilmysliwiec is any chance to merge?

@ProductOfAmerica
Copy link

ProductOfAmerica commented Oct 13, 2023

I will pay for someone to implement fed2 subs. @kamilmysliwiec

@abdelrahman-essawy
Copy link

any updates on this?

@vtereshyn
Copy link

What would we do with that issue that is almost 1 year old?

@kamilmysliwiec
Copy link
Member

According to GraphQL docs, this feature is not available for free https://www.apollographql.com/docs/router/executing-operations/subscription-support/ and so we won't prioritize this ticket. If you want to work on this, go ahead - contributions are more than welcome

@snovos
Copy link

snovos commented Mar 3, 2024

I guess @kamilmysliwiec what you posted is related to route/gateway. But if subscription are available on subgraph itself i dont see any issues with this. Federation is not supported in subscriptions by Apollo, but you can still use subscriptions just not resolve entities

@dev-juju
Copy link

What am I missing?
https://www.youtube.com/watch?v=-4R6rLMZ9mc

@bneigher
Copy link

bneigher commented Apr 3, 2024

ah bummer.. our company just implemented our first few Subscriptions on our supergraph but now we can't upgrade to federation 2 😢

@ErfanSeidipoor
Copy link

Any progress on this issue?

@jfairley
Copy link

jfairley commented Aug 6, 2024

What am I missing? youtube.com/watch?v=-4R6rLMZ9mc

@dev-juju The subscription functionality is built into the Apollo Router, which is intended to go along with GraphOS. She even says at the end, they built it into the Router (which is written in Rust) instead of the Gateway (javascript), because they wanted to leverage multithreading to handle large numbers of subscriptions.

Subscriptions, specifically, is associated with the GraphOS Enterprise tier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests