Tag: redis

Background jobs with php and resque: part 8, a glance at php-resque-ex

In all the previous part of this tutorial serie, we were using php-resque. But in some cases, this original library is not enough. Php-resque-ex is a fork of php-resque, and provides additional features. It has the same API as php-resque, and can replace it without problems.

Background jobs with php and resque: part 7, Manage workers with Fresque

Fresque is a command line tool to manage your php-resque workers Fresque removes all the hassles of manipulating process, pipe, daemon and other cli-guru related commands when managing php resque workers. Instead of starting a worker with this command: QUEUE=notification php resque.php You use: fresque start –queue notification You begin to see its real usefulness […]

Background jobs with php and resque: part 5, creating jobs

Now that you have some workers running, let’s feed them some jobs. In this part, we’ll try to understand what’s a job, and how to refactor your application to implement background jobs. What’s a job A job is a written order to tell the workers to execute a particular task. This order looks like: Mail, […]

Background jobs with php and resque: part 4, managing worker

This guide is intended for Linux and OS X users. Windows users will have to adapt some code to make them works. Understanding the internal works Technically, a worker is a PHP process that will run indefinitely, always monitoring for new jobs to execute. Pseudo-code of a worker’s internal: while (true) { $jobs = pullData(); […]

Background jobs with php and resque: part 3, installation

As said in part 2, we’ll use php-resque for our queue system. In this part, I’ll explain how to install all the tools needed to run php-resque, a port of Resque. Resque (pronounced like “rescue”) is a Redis-backed library for creating background jobs, placing those jobs on multiple queues, and processing them later. Obviously, we’ll […]

Background jobs with php and resque: part 2, queue system

As said in part 1, a queue is needed to save the jobs. Worker will then poll this queue at a defined interval to execute these jobs.


ResqueBoard is a web interface to monitor your Php Resque activities in realtime. It uses Square’s Cube (requires MongoDB and NodeJS) to collect, compute and stream datas/events/metrics in realtime. We all know that metrics are important, especially in a bigger-than-average application. I guess you don’t need resque at all if you have a blog, but […]

CakeResque 1.0

Just released the version 1.0.0 of Cake-Resque a few days ago. A big update that comes with a lot of bug fixes and new functions, thanks to feedback on Fresque, the sister version of Cake-Resque not tied to a framework. Some of the new features : Composer is used to manage all dependencies Php-resque-Ex is […]

Cake-Resque, a CakePHP plugin to manage queue system

Cake-Resque is a CakePHP plugin allowing you to put some tasks in a background queue, and execute them later. Update 2012-02-17 : Refer to Github page to updated documentation Update 2012-09-05 : Refer to official website for up-to-date API. CakeResque 1.1 comes with a lot of new features. Background Cake-Resque is based on Resque, written […]

PHP Resque with phpredis

In my quest of speed and performance, I wanted to implement a queue system in my PHP backed-end website, to defer non-essential tasks, such as logging, send notification/email, warming up cache etc … There’s already some good and popular messaging system like Gearman and rabbitMQ, and many others that’s written for java, ruby etc … […]