Example: Basic example to use Split Ruby SDK in Rails and Sidekiq service.
Environment:
- Ruby 2.7.5
How to use:
- Example is in the repo link: https://github.com/sanzmauro/poc-test-split-io/tree/split-with-sidekiq, follow the readme instructions.
- Run Sidekiq
bundle exec sidekiq -e ${RACK_ENV:-development} -r ./sidekiq/config/application.rb -C ./sidekiq/config/sidekiq.yml
- Run rails
rails s
-
Request:
http://localhost:3030/test_global_feature_flag?key=<<SOME-VALUE>>&split_name=<<YOUR-SPLIT-NAME>>
- You will see in the sidekiq console, the result of the evaluations.
Comments
0 comments
Please sign in to leave a comment.