Shoryuken

Shoryuken sho-ryu-ken is a super-efficient AWS SQS thread-based message processor.

AppSignal supports Shoryuken in Ruby gem version 1.2.0 and up.

No manual installation is required if Shoryuken is part of a Rails app. If you're using a standalone Shoryuken app, please see our integration guide.

Instrumentation for Shoryuken is enabled automatically if the Shoryuken gem is detected on AppSignal start.

Batch support

If an app uses worker with the :batch => true option, multiple messages are processed by a worker in the same tick. An upgrade is required to Ruby gem 2.11.3 or higher, which adds support for the batch option.

# my_worker.rb
class MyWorker
  include Shoryuken::Worker
 
  shoryuken_options :queue => "batched", :batch => true
 
  def perform(sqs_msg, body)
    # Do stuff
    puts "Performing BatchedWorker job: #{body}"
    sleep 1
  end
end

Example application

We have an example application for a standalone Shoryuken application available in our examples repository on GitHub.

Want to help us improve this documentation page?

Create a pull request

Need more help?

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

Contact us

Start a trial - 30 days free

AppSignal is a great way to monitor your Ruby, Elixir & Node.js applications. Works great with Rails, Phoenix, Express and other frameworks, with support for background jobs too. Let's improve your apps together.

Start a trial