This repository is a proof-of-concept how java code could potentially be run from a sidekiq worker using jruby. This is useful in cases where we want to utilize the power of sidekiq job processing, without rewriting our java code into ruby
Ensure you have jruby. You can get it with rvm.
rvm install jruby
Ensure you have docker and docker-compose.
which docker-compose
Compile the java code sh jar.sh
-
Install sidekiq -
gem install sidekiq
-
Run sidekiqs dependencies -
docker-compose up
-
Run sidekiq -
sidekiq -r ./por.rb
-
irb -r ./por.rb
-
In the interactive terminal,
PlainOldRuby.perform_async "this is my input", 5000
-
Watch how sidekiq process the logic