30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Architectural Overview<br />

Zend Server <strong>Reference</strong> Manual<br />

The Zend job queue is comprised of three main parts, the Job Queue Daemon, the Job Queue Client and<br />

one or more servers that execute the jobs.<br />

The Job Queue Daemon<br />

The heart of Zend Job Queue is the Job Queue Daemon – this external service takes care of managing<br />

scheduling, queuing and executing tasks. It also communicates with the Zend Server Administration<br />

Interface to report any errors and failures.<br />

Jobs are successfully queued once they are written to persistent storage. This makes sure that even if the<br />

daemon has to be restarted, or even in case of complete system failure, jobs are not lost.<br />

The Job Queue Client Extension<br />

Jobs, be they scheduled, recurring or one-time queued jobs are all passed to the Daemon by the Job<br />

Queue Client extension. This simple PHP extension provides an easy to use API for creating and<br />

managing jobs from within PHP. It communicates with the Job Queue Daemon through a TCP socket or a<br />

UNIX domain socket.<br />

The Job Queue Client is also a part of the Zend Server Administration Interface – which, through the<br />

same extension, allows the end user to create and manage jobs from the convenience of a web GUI.<br />

199

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!