SlideShare a Scribd company logo
JobQueue
An Overview
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
JobQueue Architecture
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).
 
JobQueue Load
Balancing
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.
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
How to implement in
ZF2
Take a practical tour
Thank You

More Related Content

PDF
Brad wood - 5 CommandBox Modules You Should Be Using [Into The Box 2020]
PDF
Brad wood - Integrating MVC Into Legacy [Into The Box 2020]
PDF
Itb2018 integrating mvc into legacy
PDF
jBPM Overview & Alfresco Workflows
PPTX
Polyglot Mule Transformers
PDF
Synchronizing parallel delivery flows in jenkins using groovy, build flow and...
PPTX
Pipeline as code using Jenkins -Ministry of Testing
ODP
Js unit testingpresentation
Brad wood - 5 CommandBox Modules You Should Be Using [Into The Box 2020]
Brad wood - Integrating MVC Into Legacy [Into The Box 2020]
Itb2018 integrating mvc into legacy
jBPM Overview & Alfresco Workflows
Polyglot Mule Transformers
Synchronizing parallel delivery flows in jenkins using groovy, build flow and...
Pipeline as code using Jenkins -Ministry of Testing
Js unit testingpresentation

What's hot (20)

PPTX
Que hay de nuevo en 2013 en la plataforma Microsoft para desarrolladores
ODP
Dot Net Notts Js Unit Testing at Microlise
PPTX
Introduction to Office Development Topics
PDF
Symfony2 Specification by examples
PDF
OpenCms Days 2015: Keynote - OpenCms 10 X marks the spot
PDF
Angular Libraries & NPM
PPTX
PPTX
PDF
PPT
RedTree OpenCMS 8
PDF
Bamboo Continuous Integration Server - Brief
PDF
Viktor Turskyi "Effective NodeJS Application Development"
PDF
Continuous Integration at Mollie
PPTX
Continuous Integration with Bamboo for Salesforce
PPTX
Jenkins pipeline as code
PPTX
Better java with design
PDF
Jenkins : Pipeline As Code
PPTX
ML model integration with DevOps
PPTX
Microsoft 2014 Dev Plataform - Roslyn -& ASP.NET vNext
PDF
Jenkins Declarative Pipelines 101
Que hay de nuevo en 2013 en la plataforma Microsoft para desarrolladores
Dot Net Notts Js Unit Testing at Microlise
Introduction to Office Development Topics
Symfony2 Specification by examples
OpenCms Days 2015: Keynote - OpenCms 10 X marks the spot
Angular Libraries & NPM
RedTree OpenCMS 8
Bamboo Continuous Integration Server - Brief
Viktor Turskyi "Effective NodeJS Application Development"
Continuous Integration at Mollie
Continuous Integration with Bamboo for Salesforce
Jenkins pipeline as code
Better java with design
Jenkins : Pipeline As Code
ML model integration with DevOps
Microsoft 2014 Dev Plataform - Roslyn -& ASP.NET vNext
Jenkins Declarative Pipelines 101
Ad

Viewers also liked (20)

PPTX
Mysql5.1 character set testing
PPT
PPTX
Mysql architecture&parameters
PDF
Talend Open Studio Introduction - OSSCamp 2014
PDF
MySQL Proxy: Architecture and concepts of misuse
PPT
OSSCube MySQL Cluster Tutorial By Sonali At Osspac 09
PPT
High Performance Mysql
PPTX
Legacy to industry leader: a modernization case study
PPTX
MySQL DBA OCP 1Z0-883
PPT
MySQL Alta Disponibilidade com Replicação
PPTX
Maria DB Galera Cluster for High Availability
PPTX
Introduction to AWS
PPTX
Exploiting JXL using Selenium
PPTX
Cutting Through the Disruption
PPTX
Using pim to maximize revenue and improve customer satisfaction
PPTX
Ahead of the Curve
PPTX
Talend for the Enterprise
PPTX
Marketing and Sales together at last
PPTX
Using MySQL Fabric for High Availability and Scaling Out
PPTX
Learning from experience: Collaborative Journey towards CMMI
Mysql5.1 character set testing
Mysql architecture&parameters
Talend Open Studio Introduction - OSSCamp 2014
MySQL Proxy: Architecture and concepts of misuse
OSSCube MySQL Cluster Tutorial By Sonali At Osspac 09
High Performance Mysql
Legacy to industry leader: a modernization case study
MySQL DBA OCP 1Z0-883
MySQL Alta Disponibilidade com Replicação
Maria DB Galera Cluster for High Availability
Introduction to AWS
Exploiting JXL using Selenium
Cutting Through the Disruption
Using pim to maximize revenue and improve customer satisfaction
Ahead of the Curve
Talend for the Enterprise
Marketing and Sales together at last
Using MySQL Fabric for High Availability and Scaling Out
Learning from experience: Collaborative Journey towards CMMI
Ad

Similar to Job Queue Presentation - OSSCamp 2014 (20)

PPTX
Php Framework
PDF
Php framework
PPTX
SWOFT a PHP Microservice Framework - 2020
PPTX
Java workflow engines
PDF
7 ways to execute scheduled jobs with python
PPTX
Apache Oozie
ODP
A Happy Cloud Friendly Java Developer with OpenShift
PDF
Introducing symfony
PDF
Top 6 php framework
PPTX
Web worker in your angular application
PDF
Cakephp manual-11
PPTX
OW2 Nanoko
DOCX
Introducing OpKey
DOCX
198970820 p-oooooooooo
PDF
Laravel Queues and Jobs – from the basics to Horizon
PPTX
What's New in Mulesoft Anypoint 7.4
PDF
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
PDF
Speed up web API with Laravel and Swoole using Docker
PPTX
Introduce of open swoole
Php Framework
Php framework
SWOFT a PHP Microservice Framework - 2020
Java workflow engines
7 ways to execute scheduled jobs with python
Apache Oozie
A Happy Cloud Friendly Java Developer with OpenShift
Introducing symfony
Top 6 php framework
Web worker in your angular application
Cakephp manual-11
OW2 Nanoko
Introducing OpKey
198970820 p-oooooooooo
Laravel Queues and Jobs – from the basics to Horizon
What's New in Mulesoft Anypoint 7.4
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
Speed up web API with Laravel and Swoole using Docker
Introduce of open swoole

More from OSSCube (18)

PPTX
High Availability Using MySQL Group Replication
PPTX
Accelerate Your Digital Transformation Journey with Pimcore
PPTX
Migrating Legacy Applications to AWS Cloud: Strategies and Challenges
PPTX
Why Does Omnichannel Experience Matter to Your Customers
PPTX
Webinar: Five Ways a Technology Refresh Strategy Can Help Make Your Digital T...
PPTX
Non functional requirements. do we really care…?
PDF
Performance Testing Session - OSSCamp 2014
PDF
Introduction to Business Process Model and Notation (BPMN) - OSSCamp 2014
PDF
Apigility – Lightning Fast API Development - OSSCamp 2014
PDF
Why Automation is Required in Software Testing - OSSCamp 2014
PPTX
OSSCube x Zend CIOSynergy Dallas Presentation
PPTX
OSSCube - SugarCRM Gold and Authorized Learning Partner
PPTX
OSSCube - Zend Webinar
PPTX
Debugging with Zend Studio for Eclipse
PPT
Zend PHP5 Certification
PDF
OSI Days OSS
ODP
Introducing LibreOffice
ODP
Foss: Why should it matter to Students
High Availability Using MySQL Group Replication
Accelerate Your Digital Transformation Journey with Pimcore
Migrating Legacy Applications to AWS Cloud: Strategies and Challenges
Why Does Omnichannel Experience Matter to Your Customers
Webinar: Five Ways a Technology Refresh Strategy Can Help Make Your Digital T...
Non functional requirements. do we really care…?
Performance Testing Session - OSSCamp 2014
Introduction to Business Process Model and Notation (BPMN) - OSSCamp 2014
Apigility – Lightning Fast API Development - OSSCamp 2014
Why Automation is Required in Software Testing - OSSCamp 2014
OSSCube x Zend CIOSynergy Dallas Presentation
OSSCube - SugarCRM Gold and Authorized Learning Partner
OSSCube - Zend Webinar
Debugging with Zend Studio for Eclipse
Zend PHP5 Certification
OSI Days OSS
Introducing LibreOffice
Foss: Why should it matter to Students

Recently uploaded (20)

PDF
project resource management chapter-09.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
A Presentation on Touch Screen Technology
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
A Presentation on Artificial Intelligence
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
August Patch Tuesday
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Tartificialntelligence_presentation.pptx
project resource management chapter-09.pdf
Programs and apps: productivity, graphics, security and other tools
A comparative study of natural language inference in Swahili using monolingua...
SOPHOS-XG Firewall Administrator PPT.pptx
Encapsulation_ Review paper, used for researhc scholars
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
OMC Textile Division Presentation 2021.pptx
Unlocking AI with Model Context Protocol (MCP)
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
A Presentation on Touch Screen Technology
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A comparative analysis of optical character recognition models for extracting...
A Presentation on Artificial Intelligence
Hindi spoken digit analysis for native and non-native speakers
TLE Review Electricity (Electricity).pptx
Group 1 Presentation -Planning and Decision Making .pptx
August Patch Tuesday
Assigned Numbers - 2025 - Bluetooth® Document
Tartificialntelligence_presentation.pptx

Job Queue Presentation - OSSCamp 2014

  • 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
  • 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).  
  • 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. 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. How to implement in ZF2 Take a practical tour