Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication events. In other words, it is the nervous system for how distributed processing communicates.
Gearman is a system to farm out work to other machines, dispatching function calls to machines that are better suited to do work, to do work in parallel, to load balance lots of function calls, or to call functions between languages.
- MySQL UDF: The Gearman MySQL user defined functions (UDFs) allow queries in MySQL to act as a Gearman client. This gives you the ability to run functions in you query not just on the local machine, but to any machine running a Gearman worker. This can be useful for a number of reasons, including processor or memory intensive functions that you wish to run on other machines, functions that can run in the background, functions that can run in parallel for aggregate operations, and also to trigger jobs or other actions from a MySQL query.