You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After switching from nodeStatus.tip.index to tipChanged subscription, 9c-launcher has experienced severe performance issues due to too frequent subscription responses.
Although this is not a bug per se, it may help if we could introduce a way to limit the frequency of the response of these subscriptions such as throttling etc.
Reproduction
Using Apollo Client with React, assuming the basic configuration is completed, this snippet will cause the application to be stuck for a while.
import{useSubscription,gql}from"@apollo/client";constTIP_SUBSCRIPTION=gql`subscription Tip { tipChanged { index }}`;functionComponent(){useSubscription(TIP_SUBSCRIPTION);returnnull;}
Executed environment
Docker (tag: )
Through dotnet run (commit: ...(e.g. ))
Through NineChronicles launcher (version: ... (e.g. v1000080)): around v100200
Executed GraphQL query
subscriptionTip {
tipChanged {
index
}
}
Expected behaviour
We could let the client limit the frequency by passing some arguments.
Additional context
This subscription has been introduced for easing the load of an RPC server.
The text was updated successfully, but these errors were encountered:
Update on the issue: the launcher currently circumvents this issue via handling the updates manually and scheduling them. See planetarium/9c-launcher#1536 for details.
Description
After switching from
nodeStatus.tip.index
totipChanged
subscription, 9c-launcher has experienced severe performance issues due to too frequent subscription responses.Although this is not a bug per se, it may help if we could introduce a way to limit the frequency of the response of these subscriptions such as throttling etc.
Reproduction
Using Apollo Client with React, assuming the basic configuration is completed, this snippet will cause the application to be stuck for a while.
Executed environment
dotnet run
(commit: ...(e.g. ))Executed GraphQL query
Expected behaviour
We could let the client limit the frequency by passing some arguments.
Additional context
This subscription has been introduced for easing the load of an RPC server.
The text was updated successfully, but these errors were encountered: