> For the complete documentation index, see [llms.txt](https://prospect-io.gitbook.io/developer-playbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prospect-io.gitbook.io/developer-playbook/our-stack/ruby-on-rails/sidekiq.md).

# Sidekiq

Check out the the doc at <https://github.com/mperham/sidekiq/wiki>

## Job Definition

```ruby
class MyDummyPutsJob
  include Sidekiq::Worker

  def perform(text)
    puts text
  end
end
```

## Jobs Enqueueing&#x20;

```ruby
MyDummyPutsJob.perform_async("Hi there future you!")
```

## How Sidekiq really works

{% embed url="<https://pdabrowski.com/articles/how-sidekiq-really-works>" %}

## Tips and Tricks

#### Run all Sidekiq processes on your computer

```bash
gem install foreman 
forman start -f Procfile.dev
```
