Hacker News new | ask | show | jobs
by seanlaff 2558 days ago
` If Query Batching is enabled, Apollo will not issue requests immediately. Instead it will wait for up to 10 ms to see if more requests come in from other components. `

This has always felt pretty lame to me. GraphQL has the entire request as an AST, it should know how to batch without arbitrary "debounces" thrown everywhere which slow all requests.

The fact that GQL doesn't provide better constructs around batching/reducing seems like a major failure of its design.

1 comments

GQL can‘t know how and when your application or framework is issuing requests. The idea is elegant and copied from the TCP Nagle algorithm which works the same way.