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.

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

Executing Web Servers<br />

As far as execution is concerned, running a job is no more than sending a simple HTTP request. When<br />

creating a new job through API or GUI, the user specifies the URL for this HTTP request, along with some<br />

possible optional parameters. When it's time to run the job, the Job Queue Daemon sends an HTTP<br />

request to the server specified by the URL along with the provided headers and parameters, and waits for<br />

a response.<br />

The executing HTTP server can be any HTTP server – it might even be the same server that queued the<br />

job. This design makes it very easy to manage the system. You don't have to (but can, if needed) set up<br />

dedicated servers for handling off-line jobs. You don't have to (but can, if needed) create and manage a<br />

special PHP configuration for this environment. You can reuse existing code to a level where sometimes<br />

the difference between off-line and on-line execution is decided based on a simple request parameter.<br />

200

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

Saved successfully!

Ooh no, something went wrong!