https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
f

flat-artist-79274

09/27/2023, 2:56 PM
Hey there πŸ‘‹ I have a question about how API calls are calculated Does each
GetFeatureValue("featureName", nil)
(it’s from golang SDK) make an API call ?
πŸ‘€ 1
h

happy-autumn-40938

09/27/2023, 9:03 PM
No, evaluating features does not trigger any network calls. In the Golang SDK the only calls would be (1) the initial get request (i.e.
LoadFeatures
or
res, err := http.Get("<https://cdn.growthbook.io/api/features/><environment_key>")
) and (2) possibly any streaming (SSE) updates if
autoRefresh
is set to true. SSE updates typically create a new API call every ~5 minutes per Golang service if this is enabled (I believe it's disabled by default).
f

flat-artist-79274

09/28/2023, 5:47 AM
Thanks for clarifying πŸ™Œ
15 Views