High
Rails
Use background jobs for slow operations
Official
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
```
Add This Rule
Sign in to add this rule to your workspace
Sign in with GitHubDetails
- Severity
- High
- Category
- Rails
- Used in
- 2 rulesets