News for hackers. Stuff that matters.
Re:Write Libraries, Not Frameworks by kevsim on Saturday May 09, 2020 @07:13AM (#23123755)
This hits home for me right now. I'm currently battling some performance problems related to a lot of "magic" that happens when using the Apollo GraphQL framework and am strongly considering ripping it apart and taking back control of what happens and when.
Re:Write Libraries, Not Frameworks by nift on Saturday May 09, 2020 @08:22AM (#23124148)
Would be super awesome if you could share what you find! Having the same issues here - and I have a real time accepting that stuff becomes slow when you wanna return over 1k records. Sometimes way less for advanced things. Read: nested objects. But that slow? Come on.

I also use nestjs and there it seems updates to how to resolve a field has made it tons faster l, purely looking at the trace.

And I know that it won't be as fast as regular old json due to the checking but that slow? Must be something someone can do :)

Re:Write Libraries, Not Frameworks by kevsim on Sunday May 10, 2020 @03:27AM (#23130936)
Large queries with lots of nesting is exactly the situation I'm in. Perform a mutation and boom - very slow response from useQuery().
Re:Write Libraries, Not Frameworks by jordiburgos on Monday May 11, 2020 @05:57AM (#23140462)
Is Apollo GraphQL helping you more than REST + queries?
Re:Write Libraries, Not Frameworks by kevsim on Tuesday May 12, 2020 @10:40AM (#23154497)
I think it helped us to go really fast at first. Observable queries and subscriptions made it relatively easy to make the site feel very live and collaborative. Not sure how much help it is now as some of the magic is causing performance challenges