One note for Beanstalk / Phalcon implementation.
If you're using reserve() method, it's better to call connect() on each iteration:
//Calling method connect() on a shared MessageBroker instance is the fastest approach
$this->messageBroker->connect();
W/o this, your loop gets slow (it seems that the class is trying to find previous connection).