How to compress Gql server response using gqlgen? #2164
Unanswered
sujayramesh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a usecase to compress Gql response to reduce payload size inturn reducing network wait time. Higher the content, larger the time taken over wire to transfer data and content download by client.
Was thinking if compressing data using gzip could help. As far as I understand, the gzip option need to be passed to the http handler. In case of gqlgen, this code is embedded in the package where ServeHTTP has been implemented.
Request experts to suggest how to compress gql response data to achieve lower latency.
Appreciate any suggestions.
Thanks,
Sujay
Beta Was this translation helpful? Give feedback.
All reactions