Gearman
Gearman ist ein System für die Verteilung von Arbeit auf andere Maschinen. Es sendet Funktionsaufrufe an für die Aufgabe besser geeignete Maschinen, sorgt für die parallele Arbeit an Aufgaben und den Lastausgleich vieler Funktionsaufrufe und sorgt sich um Funktionsaufrufe zwischen unterschiedlichen Programmiersprachen.
http://gearman.org/index.php?id=getting_started
<?php $worker= new GearmanWorker(); $worker->addServer(); $worker->addFunction("resize", "my_resize_function"); while ($worker->work()); function my_resize_function($job) { $thumb = new Imagick(); $thumb->readImageBlob($job->workload()); if ($thumb->getImageHeight() > 600) $thumb->scaleImage(0, 600); else if ($thumb->getImageWidth() > 800) $thumb->scaleImage(800, 0); return $thumb->getImageBlob(); } ?>
Gearman: Build Your Own Distributed Platform in 3 Hours
PDF Gearman: Build Your Own Distributed Platform
* What Gearman is, and how it can be used to scale your application.
* Common architectures used in existing installations.
* Client APIs, including PHP, Perl, C, and MySQL UDFs.
* Basics of getting a simple system installed and running.
* Building database-driven URL mining application.
* Building your own Map/Reduce cluster.
* Persistent queues and replication for reliability.
* Statistics, monitoring, and tuning your applications.
* More use cases as time permits.
Quelle
http://en.oreilly.com/oscon2009/public/schedule/detail/8206
























![[ php-resource ]](http://www.myoos.de/images/php_mitglied.gif)
Zum schreiben eines Kommentars musst Du angemeldet sein.