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

why-graphql-advantages-disadvantages-alternatives missing disadvantages #63

Open
GrosSacASac opened this issue Nov 8, 2018 · 3 comments

Comments

@GrosSacASac
Copy link

Hi I read https://www.robinwieruch.de/why-graphql-advantages-disadvantages-alternatives/

I think it is well written, however I think It is missing a disadvantage or two.

How to send and read binary data ? With graphql the answer is not so clear, base64 encoding decoding, multipart data, extension ?

Client side and server side overhead Runtime overhead compared to simple regular REST, also load time overhead to load the graphql on the client side.

@rwieruch
Copy link
Owner

Thanks for your feedback @GrosSacASac Helps me a lot to refine the content. I understand your 1. point. Would you like to write a short paragraph as a Pull Request for this article? The 2. point needs some more explanation: Do you mean the payload of a query or that you need a GraphQL client library on the client-side?

@GrosSacASac
Copy link
Author

I could make a PR.

For 2 I mean 3 things:

For web front end you need to load a graphql client npm install apollo-client graphql-tag graphql That takes some brandwidth and load time away, If you want a web app to appear instantly (less than 1 second) you need to stay under the 50kb minfied gziped js budget.

Then everytime you make a query you need to construct a special graphql message (server and client) and deconstruct it on the receiving end. that is runtime performance overhead. Minimal but still there

@GrosSacASac
Copy link
Author

in fact it might be way more if recommendation is followed https://github.com/apollographql/apollo-client#installation

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

No branches or pull requests

2 participants