I've previously shown you why you may want to put some tasks through a queuing system, what sort of jobs you could define, plus how to keep a worker process running for as long as you would like (but still be mindful of problems that happen). In this post, I'll show you how to put the messages into the queue, and we'll …
Read MoreI'm taking a slight diversion now, to show you how the main worker processor runs. There are two parts to it - the actual worker, written in PHP, and the script that keeps running it. For testing with return from the worker, we'll just return a random number. In order to avoid returning a normally used exit value, I've …
Read MoreThe use of Beanstalkd as a queueing system What is an asynchronous queue The classic wikipedia quote (Message queue) In computer science, message queues and mailboxes are software-engineering components used for interprocess communication, or for inter-thread communication within the same process. They use a queue for …
Read More