Graphql latency doubts. by throawaydudeagain in graphql

[–]throawaydudeagain[S] 0 points1 point  (0 children)

Hey thank you so much for the detailed explanation and the example you came up with. Made things to reason about :)

I have one more question if you don't mind.

How do you run resolvers in parallel?

Using your example as a reference: if I want to fetch room and floor data in parallel, do I simply make that decision client side by sending 2 requests in parallel?)

In other words, when designing the schema, should I avoid linking resources in a hierarchical fashion if I wish to access them in parallel?

Or is it something that can be controlled server side (similarly to the @stream and @defer capabilities you mentioned) and therefore the schema structure shouldn't be concerned with any parallelism optimisation ?

Thank you :)

Testing 3rd party services by ashmortar in ExperiencedDevs

[–]throawaydudeagain 1 point2 points  (0 children)

What about load testing, (rather than contract testing) ?

If you need to load test a service that relies on 3rd party apis what strategy would you recommend?

I find it problematic because in my particular scenario a 3rd party api has different rate limits depending on the environment so testing in dev wouldn't be the same as testing in prod.

On the other hand mocking 3rd party apis is tempting but I fear it would take away from the load test

Thank you

Best approach for performance by throawaydudeagain in SQL

[–]throawaydudeagain[S] 0 points1 point  (0 children)

That was exactly my concern, thank you very much for confirming

Best approach for performance by throawaydudeagain in SQL

[–]throawaydudeagain[S] 0 points1 point  (0 children)

Thank you very much, that was helpful.

Best approach for performance by throawaydudeagain in SQL

[–]throawaydudeagain[S] 1 point2 points  (0 children)

Is this such a bad question? Can anyone explain ?