Prompt
What GraphQL infrastructure should I use?
Latest observation
Aug 27, 2026
OpenAI APIWeb search: off
It depends on what you mean by “GraphQL infrastructure,” but in practice you usually need to choose across these layers:
- GraphQL server/runtime
- API gateway / edge
- Data sources and federation
- Caching, auth, observability
- Client tooling
A good default stack depends on your team size and architecture.
If you want the simplest reliable setup
Use:
- Apollo Server or GraphQL Yoga for the API
- PostgreSQL as primary data store
- Redis for caching/rate limiting
- JWT/OAuth for auth
- Apollo Studio or OpenTelemetry + Grafana for observability
This is a solid choice for most startups and product teams.
If you want a managed GraphQL platform
Consider:
- AWS AppSync if you’re already on AWS and want managed GraphQL with real-time/subscriptions
- Apollo GraphOS if you want federation, schema governance, and multi-team GraphQL at scale
- Hasura if you want instant GraphQL over Postgres and fast CRUD-heavy development
If you have multiple backend teams/services
Use GraphQL Federation:
- Apollo Federation is the most established
- Put a gateway in front of subgraphs/services
- Good when you need a single graph across many domains
If your use case is mostly database-driven CRUD
Use:
- Hasura or PostGraphile
- They can save a lot of backend work
- Best when you don’t need lots of custom business logic in the GraphQL layer
If you need maximum control and portability
Use:
- GraphQL Yoga or Apollo Server
- Custom resolvers
- Your own infrastructure on Kubernetes, ECS, or serverless functions
Quick recommendation by scenario
- Startup / small team: Apollo Server or GraphQL Yoga + Postgres + Redis
- Fast CRUD app: Hasura
- Enterprise / many services: Apollo Federation + GraphOS
- AWS-heavy / managed: AppSync
- Want lightweight and modern: GraphQL Yoga
What to avoid
- Building your own GraphQL gateway/federation system from scratch unless you really need to
- Overusing GraphQL for simple internal services that don’t benefit from flexible querying
- Exposing every database table directly without auth/business rules
If you’re asking for a single recommendation
For most new projects in 2026, I’d suggest:
GraphQL Yoga or Apollo Server + PostgreSQL + Redis, and Apollo GraphOS only if you need federation/governance later.
If you want, I can narrow this down based on:
- team size
- cloud provider
- whether you need federation
- whether your app is mostly CRUD or heavy business logic