Skip to main content

Ruby SDK: Example using FME SDK with Rails and Sidekiq service

Example: Basic example to use Ruby SDK in Rails and Sidekiq service.

Environment:

Ruby 2.7.5

Steps to use:

  1. Example is in the repo link: https://github.com/sanzmauro/poc-test-split-io/tree/split-with-sidekiq, follow the readme instructions.
  2. Run Sidekiq
bundle exec sidekiq -e ${RACK_ENV:-development} -r ./sidekiq/config/application.rb -C ./sidekiq/config/sidekiq.yml
  1. Run rails
rails s 
  1. Request: http://localhost:3030/test_global_feature_flag?key=<SOME-VALUE>&split_name=<YOUR-SPLIT-NAME>
  2. You will see in the sidekiq console, the result of the evaluations.