core icon indicating copy to clipboard operation
core copied to clipboard

Token Rates request rate higher than expected

Open blurpesec opened this issue 10 months ago • 3 comments

Background

Starting in January, we migrated token pricing provider from Coingecko to an internal PriceAPI. At the time we were quoted a number of requests per day to expect once full rollout occurred. Currently we're doing ~10x that rate.

There has previously been some discussion around one or more of the apps possibly defaulting to an "open" state on browser load, regardless of if the app is "open" - which starts polling for token rates until the app is actually opened, then closed again.

Impact

The current impact of this is ~10x expected traffic to our internal Price API service which is a much higher-than-expected cost.

blurpesec avatar Apr 18 '24 16:04 blurpesec

Desi to discuss this with Gauthier about whether this should be investigated by the client teams. Need to have a lightweight step to gauge our volume.

desi avatar May 01 '24 15:05 desi

Expect an improvement in extension 11.16.0. It used to poll in the background on browser open, even if you never opened metamask:

https://github.com/MetaMask/metamask-extension/pull/24021

bergeron avatar May 03 '24 15:05 bergeron

Will check back in with Michael on this after 11.16 is out for a bit to see if we are still seeing the issues.

desi avatar May 09 '24 15:05 desi

This is fixed after 11.16.* rollouts. Traffic to PriceAPI reduced by ~85%.

blurpesec avatar Jun 11 '24 13:06 blurpesec