Introducing astjson, a Go package that allows you to transform and merge JSON objects with unmatched speed. It is used to improve the performance of the GraphQL API Gateway by reducing CPU time and memory usage. Benchmarks showed that Cosmo Router has higher throughput and lower latency than Apollo Router on a 169kb JSON response payload.

8m read timeFrom wundergraph.com
Post cover image
Table of contents
Why we needed astjson and what problem does it solve for us?BenchmarksAnalyzing the CPU and Memory ProfilesHow does the astjson package work?How the astjson package simplifies non-null error bubblingConclusion

Sort: