Hello, everyone Do you know any variants to minimi...
# ask-questions
n
Hello, everyone Do you know any variants to minimize time when I wait for experiment data from the self-hosted GrowthBook? I use self-hosted GrowthBook with Nextjs app. To store data from GrowthBook I used Mixpanel.
f
Can you explain what you mean by this a bit more? wait to get data from the experiment in terms of significant results or just any data at all?
n
I initialize Growthbook on the frontend part of my Nexjs app. And when my app runs in the browser, app requests experiment data from GrowthBook and then it waits for data. I aim to minimize the time of waiting for data from GrowthBook. Why do I need it? My application has great performance, but when I use A/B tests I have less performance and this is expected but I want to prepare the solution with the best performance and minimize time when I wait for data from GrowthBook. Can I prefetch experiment data or fetch it from the middleware level in Nextjs? Please add a link to an example or article.
d
hi Graham - any thoughts here based on @numerous-parrot-53028 explanation?
f
I see - GrowthBook is made to be super flexible. What it needs to start serving features and experiments to users are the JSON feature payload and at least one attribute. The payload can come from a network request to GrowthBook or our Proxy, but can also be served via any other methods- from your middleware, from a Reddis instance, and also from a static object baked into the code or baked as part of a deploy step.
👀 1