Answers
- You should prefer a framework such as Netflix DGS in place of the
graphql-java
library to implement GraphQL APIs because it bootstraps the development and avoids writing boilerplate code.
Apart from the ease of development, the framework uses graphql-java
internally; therefore, it keeps itself in sync with the GraphQL specification’s Java implementation. It also supports developing federated GraphQL services.
It also provides plugins, the Java client, and testing utilities that help you to automate the development. The Netflix DGS framework is well tested and has been used by Netflix in production for quite some time.
- A federated GraphQL service contains a single distributed graph exposed using a gateway. Clients call the gateway, which is an entry point to the system. A data graph will be distributed among multiple services and each service can maintain its own development and release cycle independently. Having said that, federated GraphQL services...