GraphQL as an umbrella for microservices
summary
An e‑commerce backend of 15 microservices uses a GraphQL gateway (Starlette/FastAPI) that translates internal REST calls into client queries, adopts schema-first with Ariadne so frontend teams can own the contract, and uses data loader batching to avoid N+1 product calls. REST APIs remain for debugging, file uploads go directly to cloud storage, OpenTelemetry instruments resolvers, and pytest snapshot tests (Zapi) verify gateway translations. The gateway reduces coupling and works in production, with caveats around GraphQL error semantics and binary handling.
AI-written summary · about
