Understanding GraphQL Directives: Practical Use-Cases at Zalando
Zalando uses custom GraphQL directives to declare cross-cutting server behavior in the schema and to attach client metadata in queries.
Zalando uses custom GraphQL directives to declare cross-cutting server behavior in the schema and to attach client metadata in queries.
Riptide is Zalando's open source Java HTTP client built around declarative client-side response routing, where responses are dispatched to handlers by status, status series, reason phrase or content type, much like server-side request routing.
Zalando disables arbitrary GraphQL queries in production and accepts only query IDs that were persisted at build time, where an ID is a hash of the normalized query.
Zalando moved Kotlin from TRIAL to ADOPT on its Tech Radar, making it the third supported JVM language alongside Java and Scala after 100+ new Kotlin applications were written in a year.
GraphQL's built-in errors array is untyped and undiscoverable, so Zalando splits failures into two categories based on who can act on them.
Zalando's GraphQL server uses lookaheads on the resolver's info AST (fieldNodes and selection sets) to work out which sub-fields a query requests, then forwards them to backends that support partial responses via a fields parameter.
Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.