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

Store GraphQL query by fingerprint (optimize for broadcasting) #28

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Envek
Copy link
Member

@Envek Envek commented Oct 28, 2022

Goal: avoid requesting all subscription ids for fingerprint. That might impose too much load without real need for it.

Actually, we don't need to store GraphQL query and variables separately for each subscriber of the same broadcastable query as they will be the same (see https://graphql-ruby.org/subscriptions/broadcast#under-the-hood), non-broadcastable queries will get unique fingerprints, so extra step to get GraphQL query for re-evaluation seems to be redundant here also.

Status:

  • Basic implementation (aka proof of concept)
  • Compatibility with older data model
  • Operational stability (expires etc)
  • Real world check

Goal: avoid requesting all subscription ids for fingerprint.
@Envek Envek requested a review from palkan October 28, 2022 14:22
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.

1 participant