Which graphQL Gateway should use to access multiple String boot graphQL microservices with single URL?

129 Views Asked by At

I have the below spring boot graphql microservices in java

  • /graphql1 - with User service
  • /graphql2 - with Product service

All these 2 microservice run on different ports.

I would like to host these 2 microservices through one single graphql api gateway i.e. /graphql .
Like when the, query is userlist - api should redirect the request to /graphql1 - User service

I have read about apollo gateway. Use of apollo gateway in this scenario is a good option?
or how to create graphql api gateway to fullfill this scenario.
Any reference and guidance is appreciated.

0

There are 0 best solutions below