Performance: Sidekiq adapter setup
This affects background job processing speed and how quickly the UI remains responsive by offloading work.
config.active_job.queue_adapter = :sidekiq
config.active_job.queue_adapter = :inline
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Inline job adapter | N/A (server-side) | Blocks server response delaying DOM update | Delays initial paint and interaction | [X] Bad |
| Sidekiq adapter | N/A (server-side) | Non-blocking server response | Faster paint and interaction readiness | [OK] Good |
config.active_job.queue_adapter to set the background job processor.:sidekiq to config.active_job.queue_adapter.config/application.rb?:sidekiq is the correct way to specify the adapter.config.active_job.queue_adapter = :sidekiq
class MyJob < ApplicationJob
def perform
puts 'Job is running'
end
end
MyJob.perform_laterperform_later enqueues the job to Sidekiq to run asynchronously, not immediately.puts runs when Sidekiq worker processes the job, so output appears asynchronously in Sidekiq logs or console.config.active_job.queue_adapter = :sidekiq but your jobs are not running. Which of the following is the most likely cause?config.active_job.queue_adapter = :async in application config to use async adapter by default.self.queue_adapter = :sidekiq to override the default adapter.Pass the test and this pattern moves unknown