Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root797674yIt trades transport and client parsing load for server load, and it isnt a fair exchange: the server gets a much worse deal.
So while it feels amazing and makes your life easier on the frontend, use it with caution and keep scaling in mind. -
gvnix19224y@Root that’s always true. You can have your cake and eat it too. But sometimes you have downstream systems not necessarily UI that will incur performance penalties per response because your payload was huge.
Some one has to sacrifice their cpu cycles. So it’s better than one system does than 20 others. -
ltlian21884yI've used it for two projects now and it definitely comes with its pitfalls, but I still prefer it over rest - depending on the data model.
If you are on dotnet, check out hot chocolate. It takes care of a *lot* for you while still allowing you granular control like usual. Out of the box you can just hand it your EF dbcontext, and when you ask for a deep nested query it manages to write it as a join instead of ending up with a foreach lookup. -
formatc1234yI'll take another look at hot chocolate, last time I couldn't find a production ready example and ended up inventing some way to represent large schemas which is...not ideal.
Started learning/using graphQL for my personal project and it’s really interesting! It solves my major concern of huge json response
rant