r/SpringBoot • u/One_Sport2152 • Mar 20 '26
Question Rest vs GraphQL
I think all the time in Spring Boot I have been using only Rest ,although i kind of get general difference between rest and GraphQL, how usually do you implement it in spring boot and when you should consider using rest and when GraphQL is a win in terms of efficiency ?
37
Upvotes
View all comments
Show parent comment
2
u/Ok-Measurement7917 Mar 21 '26
Graphql it's a tuning rest (for queries and mutation, for subspriction will be like reactive endpoint or websocket) with dynamic queries and responses. But still, over the magic you have classic http request :) also kafka, pubsub or other ways for communicate are fragile, create some problems (like incosistency of data or retry mechanism), there's no only one solution :)