Company
Date Published
Author
Jens Neuse
Word count
1176
Language
English
Hacker News points
None

Summary

WunderGraph achieves significantly higher requests per second (up to 271x) and lower latency compared to Apollo Gateway v1 and v2, with WunderGraph's Go implementation allowing for efficient concurrent execution. WunderGraph also supports Subscriptions, which is not the case with Apollo Gateway. The main difference in performance lies in WunderGraph's architecture, which uses a Query Compiler to prepare the execution of an Operation at deployment time, removing complexity from working with GraphQL ASTs at runtime. While NodeJS-based mercurius-js performs well on small payloads, it struggles with large queries and is outperformed by Apollo Gateway v2. Despite its limitations, WunderGraph offers improved security and cost-effectiveness compared to hosting a fast Federation-compatible solution.