5 ms·
I tried graphql in a microservices environment and had huge headaches over schema stitching. Turns out, if you have lots of objects from disparate sources, gra
by gabereiser 4y ago
I tried graphql in a microservices environment and had huge headaches over schema stitching.
Turns out, if you have lots of objects from disparate sources, graphql don’t like that. Now you must stitch these schemas together into an über schema roll query and use with graphql. Maybe we missed a step. Maybe we misunderstood. Maybe it was a bad decision.
- PUSH_AX 4y agoAnd good luck doing that in a language that isn’t JS. All our GQL services were Go, but were forced to use JS for any stitching needs.
- locutous 4y agoI used graphql at one place and our stitching was a disaster. I'm thinking bad decision. We also had micro services. It was the most unstable backend I've ever worked with. Yet the architects who picked all these techs were mostly lauded and didn't stick around to deal with the mess.
- vlod 4y agoI think Apollo Federation is for that: https://www.apollographql.com/docs/federation/ https://www.apollographql.com/docs/federation/ Worth watching some youtube tutorial videos. Here's one I watched recently (~26mins): https://www.youtube.com/watch?v=v_1bn2sHdk4 https://www.youtube.com/watch?v=v_1bn2sHdk4
- gabereiser 4y agoNot everything is a graphql api
- soccersofia15 4y agoSame! We’ve been using WunderGraph to help with schema stitching and integrating other data sources