rails-active-job
Installation
SKILL.md
Active Job: Background Job Processing
Active Job is Rails' framework for declaring background jobs and processing them asynchronously. Use it to offload work from the request-response cycle, improving application responsiveness.
When to Use Active Jobs
- Email sending: Async mailers to avoid request delays
- Heavy computations: Process data without blocking users
- External API calls: Retry logic for unreliable services
- Bulk operations: Process large datasets in the background
- Scheduled tasks: Recurring operations with cron jobs
- Event processing: Handle webhooks and event notifications
- Cleanup tasks: Database maintenance and data archival