Compiling GraphQL to Blazing Fast JS
summary
Zalando compiles each GraphQL request into a single generated JavaScript function that inlines resolvers and builds the response object, letting V8 optimize on stable shapes and primitive types. It addresses pages that send up to 300 queries per request by removing generic resolver iteration and shaving microseconds of per-field work — the team spots ~500µs wasted per query that sums to ~50ms at 100 RPS. Memory usage remains a work in progress.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:25GraphQL for frontend teams
- 2:31Micro frontends query complexity
- 4:02Performance challenges
- 5:30Compiling to optimized JS
- 8:01Live compiler demo
- 9:49Results and future work








