Friday, October 16, 2020

GraphQL Performance Tips

  • Express with ‘graphql-jit’ improves performance multi-fold. This library compiles the queries and keeps them ready. If we cache the compiled ones then it is even more fast.
  • Tracing at the Resolver-level kills the performance.
  • Type-graphql adds overhead.
  • Apollo-server adds overhead.
  • Koa Server is faster option than Express because Express validates schema for every single request even when it is not changed.

No comments: