Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
JobQueuePatterns.pdf
Search
Robert Allen
March 20, 2013
0
160
JobQueuePatterns.pdf
Robert Allen
March 20, 2013
Tweet
Share
More Decks by Robert Allen
See All by Robert Allen
ReSTful web services via RFC-2616
zircote
2
2.5k
Amazon Web Services @ifbyphone
zircote
1
19k
ReSTful web services via RFC-2616
zircote
1
19k
PHPUnit-TDD
zircote
5
250
PHPUnit Introduction
zircote
4
180
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Why Our Code Smells
bkeepers
PRO
334
57k
KATA
mclloyd
29
14k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Transcript
Zend Job Queue Pa-erns Workflow Processing and Service
Design Pa-erns
Service Design Pa-erns Service Design Pa-erns: Fundamental Design Solu?ons
for SOAP/WSDL and RESTful Web Services By Robert Daigneau Publica?on Date: November 4, 2011 ISBN-‐10: 032154420X ISBN-‐13: 978-‐0321544209 Edi?on: 1
Zend Job Queue
Workflow processor Workflow engines govern en?re workflow life
cycles from process instan?a?on to termina?on.
What the Zend Job Queue is not • It
is not perfect • It is not well documented • It is not free • It is not always the right tool
Alterna?ves to Zend Job Queue • Gearman+libgearman •
Celery+Rhubarb • Cron/Chronos • PHP_Job-‐Queue
Why do I need this extra work? • Concurrency
• Resiliency • Scaling work load • Reliability of task execu?on
Task Responses
Parsing the Zend Job Queue Result
The pa-erns • Request/Response • Workflow Connector
• Request/Acknowledge • Request/Acknowledge/Poll • Request/Acknowledge/Callback
Request/Response h-p://servicedesignpa-erns.com/
None
Workflow Connector h-p://servicedesignpa-erns.com/
Request/Acknowledge h-p://servicedesignpa-erns.com/
None
Request/Acknowledge/Poll h-p://servicedesignpa-erns.com/
None
Request/Acknowledge/Callback h-p://servicedesignpa-erns.com/
None
Resources • The Code Examples: h-ps://gist.github.com/ zircote/974ba6a3360874b75a14 •
h-p://gearman.org/ • h-p://www.zend.com/en/products/server/ zend-‐server-‐job-‐queue • ZendJobQueue Autocomple?on file: h-ps:// gist.github.com/zircote/3189466 • h-ps://github.com/astorm/Job-‐Queue