How to Build a Python-Based GraphQL API Gateway and Federation Service for Django Microservices?

I have a set of Django microservices, each exposing GraphQL APIs. Currently, I'm using Apollo Server with Apollo Federation to combine all subgraphs into a single supergraph. However, I've encountered a few limitations:

  1. Some of Apollo’s advanced features aren't free.

  2. The rover command (used to create a supergraph from subgraphs) requires an internet connection, which isn't ideal for my setup.

I'm looking to build a custom solution in Python (using Flask, Django, or similar) that can serve as both an API gateway and a GraphQL federation service. The goal is to aggregate all subgraphs and generate a supergraph without relying on Apollo's proprietary tools.

Has anyone implemented a similar solution or have suggestions for frameworks, libraries, or strategies to accomplish this? Any advice on building this gateway and handling GraphQL federation in Python would be greatly appreciated.

I'm looking to build a custom solution in Python (using Flask, Django, or similar)

Вернуться на верх