Tuesday, October 6. 2009
Doing the work elsewhere - Adding a job to the queue
In this post, I'll show you how to put the messages into the queue, and we'll also make a start on reading them back out.
Continue reading "Doing the work elsewhere - Adding a job to the queue"
Tuesday, June 23. 2009
Doing the work elsewhere - Sidebar - running the worker
Wednesday, June 10. 2009
Doing the work elsewhere - Asynchronous Message Queues
The 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 messaging – the passing of control or of content. Group communication systems provide similar kinds of functionality.
So one part of a system puts a message into a queue for another part to read from, and then act upon. The asynchronous nature means that each side is otherwise independent from the other, and does not wait for a response. That independence is an important part of the nature of the system though – and we’ll see later how some of the more advanced functionality for our software of choice here can give some extraordinary flexibility to what can be done.
Continue reading "Doing the work elsewhere - Asynchronous Message Queues"Saturday, June 6. 2009
(me instanceOf ZCE) === true
Phew. That would have been embarrassing if I’d not passed my ZCE on Thursday afternoon.
The rant on how useful it actually is though, will be coming early next week.
Saturday, May 30. 2009
I laugh at your ZCE exam prep tests #2
Back at the PHP London Conference at the end of February, iBuildings was offering a little test, with prize for people that could do well answering the sort of questions that are on the ZCE exam. Never one to turn down something for free, I took ten minutes to answer the eight questions. A few weeks later, I get an email from them/Zend to say I’d won the chance to take an exam – ZCE, or ZFE (Zend Framework). Although I use ZF, I don’t know it well enough to begin to pass any exam, so as I’ve still not had the chance to take it, I figured, why not take it on their dime?
About 14 months ago, I’d bought 5 tries on the PHPArch-based ‘Vulcan’ test prep exam. Today, I’ve come back to it, and gone through it again. Like last time, the test (practice and real) is scheduled to take up to 90 minutes, but I had whipped through them all in 45 minutes, I have finished the 70 questions.
I’m amused by the fact the only part of this I failed was ‘Basic Language’. The first time around it was design patterns. Either way, now I’ve got some time, I’m going to schedule the test for quite possibly later this week and see about getting the paperwork for it.
It’s also still 7 ‘EXCELLENT’s, and a fail – just in different places :-)
| Category | Grade |
| XML & Web Services | PASS |
| Arrays | PASS |
| Web Features | EXCELLENT |
| Basic Language | FAIL |
| Streams and Network Programming | PASS |
| Database Access | PASS |
| String Manipulation and Regular Expressions | EXCELLENT |
| PHP 4/5 differences | EXCELLENT |
| Security | EXCELLENT |
| OOP | EXCELLENT |
| Functions | EXCELLENT |
| Design | EXCELLENT |
Overall : EXCELLENT
Thursday, September 18. 2008
Elephpants on parade
After my little trip out yesterday to Google Dev Day 2008 (London) at Wembley – I thought I’d post some pics I took of the day, or more precisely, of what my Elephpant got up to. You can see them on the Elephpant at GoogleDevDay08 Flickr set page.
Also, some link love to to http://www.elephpantworldtour.com/ for the idea of taking the cute little blue guy along.

Comments
Wed, 28.10.2009 20:56
Multiple workers running is no t a problem – Beanstalkd will keep the jobs separate even if multiple ones are reser [...]
Wed, 28.10.2009 19:47
Is there any way to run more t he 1 worker (bash script) at a time?
Fri, 26.06.2009 01:13
Hi, What kind of beanstalk client library do you use or h ave you written your own? Is i t in PHP space or a C ex [...]
Mon, 22.06.2009 22:28
Hi, Good post. I am also pl aying with beanstakd and I am waiting for the rest of your p osts. Greetings, Alf [...]
Mon, 24.03.2008 19:30
Sun, 16.03.2008 23:45
Sun, 16.03.2008 21:31
Although example shown was usi ng Windows (my desktop) there is no reason why this can’t be used on Linux or as we [...]