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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Robert Allen
March 20, 2013
170
0
Share
JobQueuePatterns.pdf
Robert Allen
March 20, 2013
More Decks by Robert Allen
See All by Robert Allen
ReSTful web services via RFC-2616
zircote
2
2.6k
Amazon Web Services @ifbyphone
zircote
1
20k
ReSTful web services via RFC-2616
zircote
1
21k
PHPUnit-TDD
zircote
5
260
PHPUnit Introduction
zircote
4
200
Featured
See All Featured
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
200
Building an army of robots
kneath
306
46k
Google's AI Overviews - The New Search
badams
0
1k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
How to train your dragon (web standard)
notwaldorf
97
6.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
560
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
49
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.9k
Balancing Empowerment & Direction
lara
6
1.1k
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