izakfr
Joined 3 years ago
Karma
71
Submissions
46
Member since
Feb 24
learning and growing
View on Hacker NewsJoined 3 years ago
One of the features we're excited about adding is a way to cache values locally. Having control of cache ttl and refresh intervals would be a must if we added that. You're right that the tool should just work without the developer worrying about affecting latency.
const rollout_percent = await varse_client.getNumber('rollout_percent');
const random_number = Math.random() * 100;
if (random_number <= rollout_percent) {
// do gated action and will trigger for 1% of users when rollout_percent === 1
}
Also, we should probably put restrictions the keyname scheme. Ideally, it should be something readable.
Have you used Feature Flags in the past? I'm curious what your experience was.