blue-exabyte-67168
07/26/2023, 3:02 PMx
number of API requests per page load (assuming a page with an experiment running)? My hypothesis would be an API request when loadFeatures
is called and another when useFeatureValue
or getFeatureValue
is called, but can anyone confirm?
I want to ensure we won't be close to the 10M limit on api requests/month for the free plan.fresh-football-47124
blue-exabyte-67168
07/26/2023, 4:55 PMloadFeatures
on both the server and client side. Would that be 2 API requests then? (Looking at the code I see some caching logic, but want to confirm to what degree that will work)fresh-football-47124
blue-exabyte-67168
07/26/2023, 5:16 PMambitious-grass-79919
09/13/2023, 7:18 AM/api/features/<client_key>
is called, then /sub/<client_key>
is called to subscribe to any updates. So minimally there will be 2 calls for each instance created, right? Are there any other API requests we should be taking note off?white-fireman-22476
09/13/2023, 7:40 AMbackgroundSync: false
. https://docs.growthbook.io/lib/js#streaming-updatesambitious-grass-79919
09/13/2023, 8:47 AMgrowthbook.loadFeatures({ autoRefresh: true })
, will the polling add to the API requests? If so, what is the refresh rate? I canโt seem to find this in the documentation ๐
happy-autumn-40938
09/13/2023, 7:59 PMautoRefresh: true
is the legacy way of enabling streaming (SSE, not polling); subscribeToChanges: true
is the preferred way going forward. The reconnect rate is currently set to 1 minute refresh intervals.ambitious-grass-79919
09/14/2023, 12:42 AMsubscribeToChanges: true
should not affect the API requests, right? ๐
brief-honey-45610
09/14/2023, 2:14 AM/sub
requests are included in the API limits.ambitious-grass-79919
09/14/2023, 3:31 AM