top | item 26226304

(no title)

throwoutttt | 5 years ago

For comprehensive APIs,GraphQL is often more performant. 1 request that takes 500ms is far better to 5 requests that take 200ms

discuss

order

cunac|5 years ago

depends, if all requests are parallel they should hit different instances and that would distribute load more efficiently instead of pinning to single instance. You would actually get response in 200ms not to mention that your ability to properly size each node is increased. It also enables you to have a grey area where response can be partial and not just fail/pass. As usual YMMW depending on use case.

systemvoltage|5 years ago

You can create a single endpoint that's non-RESTFul to make a single call.

adamscybot|5 years ago

Yes and by doing so you lost the advantages of a predictable and well organised API.

GraphQL has first class support for this scenario.