Rails 3 A / B Split Test System without Redis?

I'm looking for an easy way to integrate split testing into my Rails 3 application. I researched and found two alternatives that seem to be relevant for Rails 3 ...

Thickness: http://vanity.labnotes.org

Share: https://github.com/andrew/split

However, both of them use Redis, which my employer does not want to use. I noticed that Vanity can be used instead of ActiveRecord, but I was wondering if anyone had experience setting up the A / B Split Test test system without using Redis, and what configuration would you recommend?

+6
source share
3 answers

I have no experience with Split , but I have a vanity setting without Redis. The way to do this is to add the following to your config / environment / development.rb

Vanity.playground.establish_connection :development 

Then create a file called vanity.yml in config / and add the following:

 development: adapter: active_record active_record_adapter: mysql host: localhost database: database_name username: mysql_username password: mysql_password 
+3
source

You can watch the A / Bingo plugin. It uses ActiveRecord, and there is a RailsCasts episode on how to configure and use it.

+1
source

For those of you looking for an easy-to-use easy-to-use solution for testing partitions and smoke, I developed the eeny-meeny gem. This does not require you to use Redis or anything like that. It is built as a rack middleware and processes everything based on cookies.

All you need to use is to define your experiment and use the experiment assistants where you need them:

 if participates_in?(:my_experiment, variation_id: :my_variation) # variation specific code else # normal code end if smoke_test?(:my_secret_test) # smoke test specific code else # normal code end 
0
source

Source: https://habr.com/ru/post/897257/


All Articles