3 ms·
If the endpoints are unrelated and you know them both before querying either, you can certainly query them concurrently from nearly any client language. GraphQ
by toast0 7y ago
If the endpoints are unrelated and you know them both before querying either, you can certainly query them concurrently from nearly any client language.
GraphQL can do it, but I don't think that's a big strength, compared to the dependent queries it can do. Using the results from one query to drive a further query without going back to the client will save a bunch of time if the client is far from the server.
- true_religion 7y agoSure you can make two queries concurrently, but does the server know you are doing that? With GeaphQL the server sees both queries at once, and can potentially optimize over that once someone notices that in their logs. And it expresses itself as a single network connection. I do agree though with your point about dependent queries, though I have only used GraphQL for internal apis so my experience doesn’t include that sort of problem.