allprogrammic/resque package provides a Redis-backed job queue system for PHP/Laravel, leveraging the Ruby resque model. It fits well in architectures requiring asynchronous task processing, background job execution, or distributed task management (e.g., email sending, report generation, API calls).laravel/queue), this package offers an alternative with Redis as the broker, which may be preferable if:
resque-based workflows need migration to PHP.serialize()/unserialize() by default, which may not handle all data types (e.g., closures, resources) reliably. Custom serializers (e.g., json) can be implemented.php artisan resque:work), unlike Laravel’s queue workers (queue:work), which integrate with Laravel’s process management.resque-like features (e.g., job prioritization, retries) that Laravel’s queue lacks?spatie/queueable-side-jobs, laravel/queue with Redis) that offer better support?resque-like workflow in PHP.resque to PHP..env (e.g., REDIS_HOST=...).composer require allprogrammic/resque
resque.php).config/app.php.Resque::setRedisConnection('redis');
Resque\Job\JobInterface or extend Resque\Job.class SendEmailJob implements JobInterface {
public function perform() { ... }
}
Resque::enqueue() or a facade:
Resque::enqueue('SendEmailJob', [$emailData]);
php artisan resque:work QUEUE_NAME
queue:redis).spatie/queueable-side-jobs for more control.iron-io/php-resque (a more maintained fork).maxmemory-policy, persistence).INFO command) to monitor queue backlog.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Redis server down | Jobs stuck in queue | Redis HA setup (replication/sentinel). |
| Worker process crashes | Jobs not processed | Supervisor/process manager restarts. |
| Job serialization errors | Jobs fail silently | Custom serializer + error logging. |
| Queue backlog grows | System slows down | Scale workers + monitor queue depth. |
| Package abandonment | No security updates | Fork or migrate to maintained alternative. |
resque.How can I help you explore Laravel packages today?