4 ms·
Got it! For A/B testing, we have that on our roadmap, though I think you could implement a poor man's version like this: K:V would be: testing_data: { exposu
by jeremyis 6y ago
Got it! For A/B testing, we have that on our roadmap, though I think you could implement a poor man's version like this:
K:V would be:
testing_data:
{
exposure: 0.10,
colors: ['green', 'red'],
}
// on the client:
function getColor() {
configly.get('testing_data, function(data) {
const roll = Math.random();
const index = roll > data['exposure'] ? 0 : 1;
return data['colors'][index];
});
}
re: global K:V. We plan on introducing teams that would work exactly that way!
Thanks!