dotansimha / graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.
https://the-guild.dev/graphql/yoga-server
MIT License
8.25k stars 574 forks source link

Update transport executors containing improvements and fixes #3501

Closed enisdenjo closed 2 days ago

enisdenjo commented 2 days ago

Aside from other important fixes, one notable fix is https://github.com/ardatan/graphql-tools/pull/6658.

changeset-bot[bot] commented 2 days ago

🦋 Changeset detected

Latest commit: 20ad36ffd9afc01a6c0f6f40e4ff4589aec6cf29

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages | Name | Type | | ------------------------------------------ | ----- | | @graphql-yoga/apollo-link | Patch | | @graphql-yoga/graphiql | Patch | | @graphql-yoga/urql-exchange | Patch | | graphql-yoga | Patch | | @graphql-yoga/plugin-defer-stream | Patch | | @graphql-yoga/nestjs | Patch | | @graphql-yoga/render-graphiql | Patch | | @graphql-yoga/plugin-apollo-inline-trace | Patch | | @graphql-yoga/apollo-managed-federation | Patch | | @graphql-yoga/plugin-apollo-usage-report | Patch | | @graphql-yoga/plugin-apq | Patch | | @graphql-yoga/plugin-csrf-prevention | Patch | | @graphql-yoga/plugin-disable-introspection | Patch | | @graphql-yoga/plugin-graphql-sse | Patch | | @graphql-yoga/plugin-jwt | Patch | | @graphql-yoga/plugin-persisted-operations | Patch | | @graphql-yoga/plugin-prometheus | Patch | | @graphql-yoga/plugin-response-cache | Patch | | @graphql-yoga/plugin-sofa | Patch | | apollo-federation-gateway-with-yoga | Patch | | apollo-subgraph-with-yoga | Patch | | graphql-lambda | Patch | | cloudflare-advanced | Patch | | cloudflare | Patch | | nextjs-app | Patch | | hello-world-benchmark | Patch | | @graphql-yoga/nestjs-federation | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 2 days ago

✅ Benchmark Results

     ✓ no_errors{mode:graphql}
     ✓ expected_result{mode:graphql}
     ✓ no_errors{mode:graphql-jit}
     ✓ expected_result{mode:graphql-jit}
     ✓ no_errors{mode:graphql-response-cache}
     ✓ expected_result{mode:graphql-response-cache}
     ✓ no_errors{mode:graphql-no-parse-validate-cache}
     ✓ expected_result{mode:graphql-no-parse-validate-cache}
     ✓ no_errors{mode:uws}
     ✓ expected_result{mode:uws}

     checks.......................................: 100.00% ✓ 525270     ✗ 0     
     data_received................................: 2.1 GB  14 MB/s
     data_sent....................................: 106 MB  704 kB/s
     http_req_blocked.............................: avg=1.48µs   min=992ns    med=1.32µs   max=282.64µs p(90)=1.98µs   p(95)=2.17µs  
     http_req_connecting..........................: avg=2ns      min=0s       med=0s       max=134.28µs p(90)=0s       p(95)=0s      
     http_req_duration............................: avg=357.57µs min=218.98µs med=322.6µs  max=14.87ms  p(90)=455.19µs p(95)=474.34µs
       { expected_response:true }.................: avg=357.57µs min=218.98µs med=322.6µs  max=14.87ms  p(90)=455.19µs p(95)=474.34µs
     ✓ { mode:graphql-jit }.......................: avg=290.35µs min=218.98µs med=267.99µs max=14.87ms  p(90)=298.4µs  p(95)=314.08µs
     ✓ { mode:graphql-no-parse-validate-cache }...: avg=481.71µs min=399.81µs med=456.29µs max=9.62ms   p(90)=492.9µs  p(95)=520.69µs
     ✓ { mode:graphql-response-cache }............: avg=340.64µs min=262.48µs med=322.41µs max=6.9ms    p(90)=352.27µs p(95)=362.94µs
     ✓ { mode:graphql }...........................: avg=363.25µs min=270.81µs med=328.53µs max=13.6ms   p(90)=385.57µs p(95)=446.67µs
     ✓ { mode:uws }...............................: avg=344.68µs min=267.45µs med=323.42µs max=11.01ms  p(90)=355.27µs p(95)=371.21µs
     http_req_failed..............................: 0.00%   ✓ 0          ✗ 262635
     http_req_receiving...........................: avg=32.71µs  min=15.95µs  med=32.69µs  max=7.38ms   p(90)=38.17µs  p(95)=40.22µs 
     http_req_sending.............................: avg=8.42µs   min=5.96µs   med=7.46µs   max=480.07µs p(90)=10.93µs  p(95)=11.72µs 
     http_req_tls_handshaking.....................: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting.............................: avg=316.42µs min=186.74µs med=282.25µs max=14.76ms  p(90)=413.44µs p(95)=430.33µs
     http_reqs....................................: 262635  1750.87931/s
     iteration_duration...........................: avg=566.21µs min=395.31µs med=528.45µs max=15.37ms  p(90)=668.08µs p(95)=691.22µs
     iterations...................................: 262635  1750.87931/s
     vus..........................................: 1       min=1        max=1   
     vus_max......................................: 2       min=2        max=2   
github-actions[bot] commented 2 days ago
### 💻 Website Preview The latest changes are available as preview in: [https://d7398cad.graphql-yoga.pages.dev](https://d7398cad.graphql-yoga.pages.dev)
github-actions[bot] commented 2 days ago

Apollo Federation Subgraph Compatibility Results

Federation 1 Support Federation 2 Support
_service🟢
@key (single)🟢
@key (multi)🟢
@key (composite)🟢
repeatable @key🟢
@requires🟢
@provides🟢
federated tracing🟢
@link🟢
@shareable🟢
@tag🟢
@override🟢
@inaccessible🟢
@composeDirective🟢
@interfaceObject🟢

Learn more: