News for hackers. Stuff that matters.

_92eu

Re:GraphQL Tooling, Today and Tomorrow [video] on Friday March 20, 2020 @11:03AM (#22638062)
With HTTP2, it's now almost always better to go with a RESTful API, especially if you need to do heavy calculations and display dashboards with a lot of data.

You will be able to fine tune your cache settings and monitor the performance of your endpoints (https://medium.com/@__xuorig__/why-graphql-performance-monit...)

You will be able to fetch resources in parallel and start displaying data faster (GraphQL Apollo is also able to do some king of streaming, but it relies heavily on non-standard network hacks).

You will be able to use Vulcain (https://vulcain.rocks/) which will allow you to fetch your whole resource graph at once using HTTP2 Server Push.

The only reason you may choose GraphQL is if you need to go fast and want to profit from the DX of the awesome React libraries available such as Relay or Apollo.