You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and some of these calls are repeats (eg. circulatingSupply calls totalSupply).
This large number of calls at once creates intermittent Horizon timeout errors, as well as the length of the tests (when Horizon responses are even slightly slower, because of the many calls it creates a large lag where you have to increase the time of the backend tests to be able to handle, eg).
cache each granular horizon endpoint data, and then on the api endpoints compute the responses from the caches on the fly. This should prevent repeat-horizon calls.
possibly use hubble for some/all of this data instead of calling Horizon. Hubble also has some limitations (cost/query, updates every 30 mins), that will need to be looked into though
The text was updated successfully, but these errors were encountered:
acharb
changed the title
reduce number of calls to Horizon
reduce number of calls to Horizon when updating caches
Jan 11, 2022
see if we can reduce the number of calls to Horizon. For example the
v1 updateApiLumens
method calls Horizon 40 times simultaneously every 10 mins.and some of these calls are repeats (eg. circulatingSupply calls totalSupply).
This large number of calls at once creates intermittent Horizon timeout errors, as well as the length of the tests (when Horizon responses are even slightly slower, because of the many calls it creates a large lag where you have to increase the time of the backend tests to be able to handle, eg).
some possible options to explore are:
The text was updated successfully, but these errors were encountered: