Posts
Members
Info
Ask about Subscriptions in Apollo-sever
Hi guys, I have a complicated case. I set up my express server with apollo-server-express and it works great. However, when I set up subscriptions, it works, but i can not get the payload when executing those subscriptions. I always get null value, although everything works…
0
0
Single Discussion Location for Federated Subscriptions
The discussion of federation with subscriptions seems to be scattered over the internet, is there a single source for updated status on the progress or strategies of supporting subscriptions with federation?
1
0
subscribe/unsubscribe performance characteristics
Hi, I'm currently seeing interesting behavior in one of our production applications that uses Apollo GraphQL Subscriptions. There are scenarios where clients can rapidly iterate through the subscribe/unsubscribe sequence (10 channels) causing the NodeJS runtime to lockup. Given…
0
1
Recommendation for performance test subscriptions
Hi, We are about to embark in performance testing our new GraphQL API. We are specifically interested in load testing the performance of our subscriptions. A lot of content online covers recommendation for testing queries and mutations (via HTTP) however I was unable to find…
0
1
Resetting auth token in connectionParams
Hi guys, I'm using Apollo Client and Server and using JWTs for authentication. I'm having an issue with setting and resetting the JWT inside the connectionParams field of the SubscriptionClient. (This is the first parameter of the onConnect property for subscriptions on Apollo…
1
2
Does my implementation of subscriptions look wrong?
It works right now but basically the issue I was getting was that it was pushing the new message from subscription into the messages array multiple times after the first time. The example of the error would be: newMessage = "hello2" …
0
0
Subscriptions performance: withFilter vs dynamically created triggers
Let's say I'm using an external pubsub implementation like Redis. I assume it eases the load on the GraphQL server to dynamically create triggers (e.g., NEW_COMMENT:POST-${postId} and have users subscribe to these triggers depending on which post they're viewing — rather than a…
0
2
·118d# Subscriptions
Trying to figure out how to capture a client unsubscribing ..
The life-cycle event doc indicate that he OnOperation and OnOperationComplete should trigger when the client stops a subscription (eg hitting the stop button in graphql playground). But in my case nothing happens ..only the OnDisconnect is called when i close the tab/browser.…
0
2
Replacing Apollo Server's PubSub with other implementation
Hi, I saw in the doc that it is not recommended to use the PubSub provided by ApolloServer for production application, and saw some of the alternatives, however, when I used Apollo's PubSub - all was working, now when I try to switch it for RabbitMQ's PubSub - I am failing to do…
0
3
·133d# Subscriptions
useSubscription usage getting old data back after loading
Hi I am having issues understanding what I am doing wrong with useSubscription. When changing a subscription variable, data doesn't change state as I would expect. …
0
1