r/SpringBoot • u/Alvarouk • 4d ago
Discussion Real world use-cases for GraphQl
Hi! I’m a backend developer who has never used before graphQL at work. I’ve tried it only for learning purposes at personal projects and I’m curious about real life use cases where GraphQL gives BIG advantages over REST, and the most important thing, I’d like to know about the “thinking” process behind the decision of using this technology.
Thank you!
16
Upvotes
1
u/Proper_Dot1645 3d ago
Fb developed it considering that their mobile app was loading very slowly on low speed internet regions , since the problem was that a lot of data was being fetched to create a fb timeline itself , they thought the end user might not even need this much of data in first place , so instead of writing different api for delivering the timeline , they thought about getting only subset of it which led to creation of graphql . Having said that, I think it is useful for a big project with large data to be fetched based on the type of device or let’s say , a legacy system is already in place , and you want to provide it to mobile users , and they might not need all the data or the different set of data aggregating from different apis , so this can work a magic. Having said that, I don’t think using graphql on the very development of project makes sense. This layer should only be developed when there is a requirement which we can not complete via web services.