Hello, the use case that I have is that there is ...
# ask-questions
g
Hello, the use case that I have is that there is a Go application that is handling about 10k rpm. I would like to evaluate a feature flag or an experiment on every single request. I am thinking of setting up the GrowthBook sdk on my server initialisation once. Then, on every user request, I would like to provide different user ID attribute that would be used for randomising the group in the experiment. However, looking at the GrowthBook Go integration examples (like this: https://github.com/growthbook/examples/blob/main/go-example/acme_handler.go#L24), I see that I would need to initialise GrowthBook sdk
growthbook.New(context)
for every single customer request, because the customer ID in the context would be different. Am I thinking it in a wrong way? How should I properly evaluate experiments in multiple concurrent requests in Go?
f
for this case, I Would suggest opening an issue on the Go-SDK repo