Slide 1

Slide 1 text

Zend  Job  Queue  Pa-erns   Workflow  Processing  and  Service   Design  Pa-erns  

Slide 2

Slide 2 text

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  

Slide 3

Slide 3 text

Zend  Job  Queue  

Slide 4

Slide 4 text

Workflow  processor   Workflow  engines  govern  en?re  workflow  life   cycles  from  process  instan?a?on  to  termina?on.  

Slide 5

Slide 5 text

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  

Slide 6

Slide 6 text

Alterna?ves  to  Zend  Job  Queue   •  Gearman+libgearman   •  Celery+Rhubarb   •  Cron/Chronos   •  PHP_Job-­‐Queue  

Slide 7

Slide 7 text

Why  do  I  need  this  extra  work?   •  Concurrency   •  Resiliency   •  Scaling  work  load   •  Reliability  of  task  execu?on  

Slide 8

Slide 8 text

Task  Responses  

Slide 9

Slide 9 text

Parsing  the  Zend  Job  Queue  Result  

Slide 10

Slide 10 text

The  pa-erns   •  Request/Response   •  Workflow  Connector   •  Request/Acknowledge   •  Request/Acknowledge/Poll   •  Request/Acknowledge/Callback  

Slide 11

Slide 11 text

Request/Response   h-p://servicedesignpa-erns.com/  

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Workflow  Connector   h-p://servicedesignpa-erns.com/  

Slide 14

Slide 14 text

Request/Acknowledge   h-p://servicedesignpa-erns.com/  

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Request/Acknowledge/Poll   h-p://servicedesignpa-erns.com/  

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Request/Acknowledge/Callback   h-p://servicedesignpa-erns.com/  

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

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