Hi, i'm hosting server on my local infrastructure ...
# announcements
b
Hi, i'm hosting server on my local infrastructure and i had a doubt. I'm caching api response on redis and i would like to know how a/b test work based on that my data is cached ?
f
Hi Vinicius. The feature flag data includes information about how to assign users in the A/B test
You can use the webhooks to refresh the cache when the feature changes
b
Great, but who controls ab test ? the sdk ? example: test a: 49% test b: 51% The sdk control this ?
f
yes, the SDK does the variation assignment
specifically, it will hash the experiment name, and the randomization unit you have chosen, into a number from 0 to 1
b
in this case it doesn't matter if the data is in the api or in the redis. correct ?
f
depends if you’re using any targeting rules
if you are, those attributes need to be available to the SDK
we designed the features payload from the API to be cached
b
So i have this test. Who will control the frontend result ? The sdk or the server ? In this case 10% will test a and 90% on test b
f
The SDK will hash the users into a number from 0 to 1. If their number is less than 0.1, they’ll get the off case, from 0.1 to 1 they’ll get the on variation.
b
perfect
f
keep in mind, that running an A/B test in this configuration makes it difficult to adjust weights after it’s started. Doing so will cause users to change variations.