What is the best/cleanest way to implement A-B testing in asp.net mvc?

前端 未结 6 1812
轮回少年
轮回少年 2021-01-30 22:16

What is the best and cleanest way to implement A-B testing in asp.net mvc? That is, when we make new changes to an asp.net mvc web site, we want to test the new html/css/js wit

6条回答
  •  滥情空心
    2021-01-30 23:12

    I think there isn't a ready to use solution for this and you will have to improvise.

    Try to override your current functionality in well defined points without breaking it. Explicitly draw a border where your regular code and A-B testing code lives.

    Inversion of control principle might help a lot here too (i.e. - controller factory could provide derived controller instead of original one). For views&partialviews - you could change viewengine so it would try to look for 'MyPartialViewAB.ascx' instead of 'MyPartialView.ascx'.

    And it might be a good idea to take a look what performance counters are (in case you haven't).

提交回复
热议问题