LoginSignup
18
17

More than 5 years have passed since last update.

[Rails] Webサイト最適化Bundit Algorithmsを簡単導入

Posted at

Bundit Algorithmsとは

詳細は下記詳しいですが、簡単に言うとABテストのように複数のパターンをテストしながらも最適なパターンを選択していく最適化手法です。

参考:A/Bテストよりすごい?バンディットアルゴリズムとは一体何者か

splitとは

ABテストのためのgemです。redisを使って非常にカンタンにABテストを組み込む事ができます。導入方法は下記などを参考に。

参考:RailsにA/BテストツールのSplitを導入する

splitのABテストアルゴリズムにBunditAlgorithmsを適用する

前の節の参考URLを参考にsplitを導入後、initializersでAlgorithmsの指定をしてあげるだけ。

config/initializers/split.rb
Split.configure do |config|
  config.algorithm = Split::Algorithms::Whiplash
end

参考:andrew/split #algorithms

カンタン!
Webサイトの最適化が捗りますね。

18
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
17