Skip to content

Herman J. Radtke III

Tag: #lamba

Registering Functions With Gearman Workers

The Gearman examples on are a great primer for groking how the Gearman client and worker interact with each other. One gripe I have is that the examples declare global functions for the worker to register. I feel this leads develpers down the wrong path. With PHP5.3, there is an easier solution though: anonymous functions.