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:
- 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.