Over on the Engine Yard Blog I wrote about a topic near-and-dear to my heart: Gearman.
For those that don’t know, Gearman is a simple C-based job queue server, that allows you to schedule jobs for other processes (called workers) to pick up and complete, either synchronously, or [usually] asynchronously. It can also be connected to via a number of clients in a bunch of different languages, not just PHP.
I’ve used Gearman for about 4 years, but have never had the opportunity to use it in a multi-language environment. So, I took the time to explore both Ruby and Node.js Gearman clients, and put together a multi-language example for this document. Using PHP for the client, Ruby for the workers, and Node.js for a status check poll.
What’s awesome is that any part of that could have been written in either of the other languages, or indeed in Python, C, Java, Perl — heck, I could’ve used MySQL or PostgreSQL!
I’ve always loved that this was a possibility, and it was great fun to actually put it into practice: even if only for a demo.
If you want to read about it, go checkout Polyglot Background Jobs on the Engine Yard Blog.
Comments
planet_php
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js: Over on the Engine Yard Blog I wrote about a topic… http://t.co/evBmqUxv7a
php_by
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js – Davey Shafik: Over on the Engine Yard Blog I wrot… http://t.co/eyfm1ZPLlv
sarfraznawaz
New #PHP Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/C8rdJTj8uz
DeveloppeursWeb
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js – Davey Shafik http://t.co/F8HpC8eooU Over on the Engine Yard Blog I wrote abo…
dlbrown06
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js – Davey Shafik http://t.co/ym3GhjhGPg #php
paviles
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js: Over on the Engine Yard Blog I wrote about a topic… http://t.co/2FUl7OEliI
wadewomersley
Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/nZRRV3pjgi
dshafik
For those in a different timezone: New Blog Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/O8fPxlLbzn
nomadphp
RT @dshafik: For those in a different timezone: New Blog Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/O8fPx…
aspleenic
RT @dshafik: For those in a different timezone: New Blog Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/O8fPx…
PSchwisow
RT @dshafik: For those in a different timezone: New Blog Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/O8fPx…
mtgaydos
RT @dshafik: For those in a different timezone: New Blog Post: Polyglot Background Jobs with Gearman, PHP, Ruby & Node.js http://t.co/O8fPx…
Comments are closed.