Company
Date Published
Author
Jens Neuse
Word count
2590
Language
English
Hacker News points
1

Summary

The text discusses different approaches to combine multiple GraphQL APIs: Schema Stitching, Schema Wrapping, Apollo Federation, and GraphQL Schema Composition. Each approach has its benefits and drawbacks. Schema Stitching combines APIs into a single schema but can lead to naming conflicts and manual work. Schema Wrapping wraps 3rd party APIs under a single umbrella-API, offering full control over the API design but requiring manual implementation of authentication and authorization. Apollo Federation allows combining multiple GraphQL APIs into one but requires all owners to belong to the same company. GraphQL Schema Composition or "APIs as dependencies" thinking combines multiple APIs in a semi-automatic way without exposing a dynamic API, suitable for large-scale compositions and public exposure. The choice of approach depends on the specific requirements, such as flexibility, control, scalability, and public exposure.