Job Queue Presentation - OSSCamp 2014

542 views

Published on

JobQueue is one of the feature of Zend Plateform. Where you can schedule and manage the execution of php scripts (jobs). The Job Queue can be used to create asynchronous execution of php script and provide, for instance, the scalability of a server.
application

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
542
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Job Queue Presentation - OSSCamp 2014

  1. 1. JobQueue An Overview
  2. 2. What is JobQueue  JobQueue is one of the feature of Zend Plateform. Where you can schedule and manage the execution of php scripts (jobs).  The Job Queue can be used to create asynchronous execution of php script and provide, for instance, the scalability of a server application
  3. 3. JobQueue Architecture
  4. 4. Why we use JobQueue  Web applications usually follow a synchronous communication model. However, non-interactive and long-running tasks (such as report generation) are better suited for asynchronous execution. One way to off-load tasks to run at a later time, or even on a different server, is use the Job Queue module available as a part of Zend Server 5 (though not as part of the Community Edition).  
  5. 5. JobQueue Load Balancing
  6. 6. JobQueue Vs Cronjob  The main advantage of the Job Queue module is its ability to execute tasks in parallel. Unlike cron jobs, Job Queue allows:  Running tasks now without waiting for them to finish (asynchronous execution)  Running tasks once but not right now (deferred jobs)  Running tasks periodically (recurring jobs like cron, but with full control over them from through the PHP API – start, stop, suspend, resume)  Ability to query job status, handle failures, and re-queue via the API as well as keep track of past, current, and pending jobs from the GUI.
  7. 7. JobQueue Help in our application Some examples of asynchronous tasks where Job Queue can be helpful are:  Preparing data for the next request (pre-calculating)  Pre-caching data  Generating periodical reports  Sending e-mails  Cleaning temporary data or files  Communicating with external systems  Background data synchronization with mobile devices
  8. 8. How to implement in ZF2 Take a practical tour
  9. 9. Thank You

×