如何仅在部分用户群中测试新功能?
当 Facebook 推出其网站的新版本时,他们会首先向一定比例的用户展示。
我怎样才能干净利落地做到这一点?
When facebook rolls out a new version of their site, they show it to a percentage of users first.
How could I go about doing this cleanly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
让您的用户注册您的测试版。
选择注册测试版的一定比例的人。当您进行更改时,请不断添加更多测试人员。您不想立即让所有人加入,这样您就可以一直进行测试,直到功能完成并发布。以 stackoverflow 为例。
你会这样做,因为大多数注册的人都会查看你的测试版,然后离开。他们很可能不会回来/继续为您进行测试。
选择加入也比选择退出更好。您的用户可能不想成为您的测试对象。
Have your users sign up for your Beta.
Select a certain percentage of those who sign up for your Beta. As you make changes, keep incrementally adding some more testers. You don't want to let everyone in at once so you can get testing all the way up until the feature is complete and released. Look at stackoverflow as an example.
You would do this because most of the people who sign up will check out your beta version, then leave. They most likely will not come back / keep testing for you.
It is also better to opt-in than opt-out. Your users may not want to be your test subjects.
使用 代理 将部分会话转移到两个单独的运行实例之一。代理可以是托管计算机上的软件代理。
With a proxy that diverts some fraction of the sessions to one of two separate running instances. The proxy can be a software proxy on the hosting machine.
嗯,根据更改的情况,如果您有一个 Web 服务器场,则可以仅将更改应用于该场中的某些服务器。这样,只有某些“幸运”地访问了更新的服务器的用户才会看到更改。当然,此方法假设您的 Web 代理始终将任何给定用户路由到场中的同一服务器(或一组更新的服务器)。
Well, depending on the change, if you have a farm of web servers you could apply the change to only some of the servers in the farm. That way only certain users who were "lucky" enough to hit one of the updated servers would see the change. Of course, this approach assumes that your web proxy will always route any given user to the same server (or group of updated servers) in the farm.