Hey there :wave: I have a question about how API c...
# ask-questions
f
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
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
Thanks for clarifying πŸ™Œ