Joystream / joystream

Joystream Monorepo
http://www.joystream.org
GNU General Public License v3.0
1.42k stars 115 forks source link

[Argus] Improve HEAD Request for asset #4814

Closed mnaamani closed 10 months ago

zeeshanakram3 commented 1 year ago

Currently, for each HEAD api/v1/{id} request, a request to QN is made if the assets does not exists already. This isn't an optimal if distributor-node has to scale to serve hunderds of thousands of req/sec.

Proposal

Look into ApolloClient's built-in qraphql caching mechanism for avoiding frequent IO bound queryies for each asset. Or develop some custom solution for that.

kdembler commented 10 months ago

@zeeshanakram3 I recall that we already introduced some caching of those requests. Do you think we should close this issue or there's still more work to be done here?

zeeshanakram3 commented 10 months ago

Completed in #4834