High Rails

Use background jobs for slow operations

Rule Description

Move slow operations to background jobs:
- Email sending
- File processing
- External API calls
- Report generation
- Data imports/exports

Use SolidQueue (Rails 8) or Sidekiq. Keep web requests under 200ms.

```ruby
# Good: Background job
SendWelcomeEmailJob.perform_later(user)

# Bad: Synchronous in controller
UserMailer.welcome(user).deliver_now
```

Included in Rulesets

Rails Standards
36 rules • 1 standard
View
Code Review Standards
58 rules • 0 standards
View

Add This Rule

Sign in to add this rule to your workspace

Sign in with GitHub

Details

Severity
High
Category
Rails
Used in
2 rulesets