From all my research, gRPC looks to be the most performant / reliable alternative to HTTP, but is only supported server-side currently.
There is a way to add a proxy between client / server to use gRPC on the frontend but this adds another layer of complexity. Also, there is a gRPC roadmap to natively support it in the browser, but this is probably gong to take a few years to happen.
Currently, Dgraph does have a client JS library that supports gRPC (Node) for GraphQL +/-. And I understand this library will be expanded to support Vanilla GraphQL soon too
I use Apollo Client, which has hooks for React. It’s a good frontend promise-based library that has a lot of helpful features built into it. But it would be even better if I could add the performance of gRPC to connect to Draph / GraphQL – instead of sending the traditional GraphQL spec (an HTTP Post for every request).
I see frontend gRPC as an evolutionary progression from HTTP – just an opinion – as HTTP 2 becomes more ubiquitous. What would it take to create a web client that supported gRPC (…hopefully with vanilla GraphQL baked in too)?