2017 © Pedro Peláez
 

cakephp-plugin cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

image

dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  • Wednesday, July 25, 2018
  • by dereuromark
  • Repository
  • 22 Watchers
  • 186 Stars
  • 99,955 Installations
  • PHP
  • 4 Dependents
  • 2 Suggesters
  • 94 Forks
  • 7 Open issues
  • 35 Versions
  • 7 % Grown

The README.md

CakePHP Queue Plugin

CI Coverage Status Latest Stable Version Minimum PHP Version PHPStan License Total Downloads Coding Standards, (*1)

This branch is for use with CakePHP 5.0+. For details see version map., (*2)

Background

This is a very simple and minimalistic job queue (or deferred-task) system for CakePHP. If you need a very basic PHP internal queue tool, this is definitely an option. It is also a great tool for demo purposes on how queues work and doesn't have any dependencies., (*3)

Overall functionality is inspired by systems like Gearman, Beanstalk or dropr, but without any illusion to compete with these more advanced Systems., (*4)

The plugin is an attempt to provide a basic, simple to use method to enable deferred job execution, without the hassle of setting up or running an extra queue daemon, while integrating nicely into CakePHP and also simplifying the creation of worker scripts. You can also easily provide progress and status information into your pages., (*5)

Please also read my blog posts about deferred execution and real-life example usage [new]. For more high-volume and sophisticated use cases please see the awesome list alternatives., (*6)

Why use deferred execution?

Deferred execution makes sense (especially in PHP) when your page wants to execute tasks, which are not directly related to rendering the current page. For instance, in a BBS-type system, a new users post might require the creation of multiple personalized email messages, notifying other users of the new content. Creating and sending these emails is completely irrelevant to the currently active user, and should not increase page response time. Another example would be downloading, extraction and/or analyzing an external file per request of the user. The regular solution to these problems would be to create specialized cronjobs which use specific database states to determine which action should be done., (*7)

The Queue plugin provides a simple method to create and run such non-user-interaction-critical tasks., (*8)

Another important reason is that specific jobs can be (auto)retried if they failed. So if the email server didn't work the first time, or the API gateway had an issue, the current job to be executed isn't lost but kept for rerun. Most of those external services should be treated as failable once every x calls, and as such a queue implementation can help reducing issues due to such failures. If a job still can't finish despite retries, you still have the option to debug its payload and why this job cannot complete. No data is lost here., (*9)

While you can run multiple workers, and can (to some extent) spread these workers to different machines via a shared database, you should consider using a more advanced system for high volume/high number of workers systems., (*10)

Demo

See Sandbox app., (*11)

Installation and Usage

See Documentation., (*12)

Cronjob based background scheduling

If you are looking for scheduling certain background jobs: This plugin works flawlessly with QueueScheduler plugin., (*13)

The Versions

25/07 2018

dev-master

9999999-dev http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

25/07 2018

3.10.2

3.10.2.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

24/07 2018

dev-feature/groups-types

dev-feature/groups-types http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

24/07 2018

3.10.1

3.10.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

24/07 2018

dev-run-type

dev-run-type http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

04/07 2018

3.10.0

3.10.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

28/06 2018

3.9.0

3.9.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

19/06 2018

3.8.1

3.8.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

20/04 2018

3.8.0

3.8.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

19/04 2018

2.x-dev

2.9999999.9999999.9999999-dev http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

cakephp queue background deferred tasks

29/01 2018

3.7.1

3.7.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

22/01 2018

dev-next

dev-next http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

20/01 2018

3.7.0

3.7.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

13/01 2018

3.6.3

3.6.3.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

05/01 2018

3.6.2

3.6.2.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

23/12 2017

3.6.1

3.6.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

20/10 2017

3.6.0

3.6.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

20/09 2017

3.5.3

3.5.3.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

04/09 2017

3.5.2

3.5.2.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

03/09 2017

3.5.1

3.5.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

22/08 2017

dev-bugfix/duplicates

dev-bugfix/duplicates http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

16/08 2017

3.5.0

3.5.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

15/08 2017

dev-develop

dev-develop http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

27/06 2017

3.4.1

3.4.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

15/04 2017

3.4.0

3.4.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

23/08 2016

3.3.2

3.3.2.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

24/06 2016

3.3.0

3.3.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

25/04 2016

3.2.1

3.2.1.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

19/03 2016

3.2.0

3.2.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

20/02 2016

3.1.0

3.1.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

10/01 2016

2.3.0

2.3.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

cakephp queue background deferred tasks

30/10 2015

3.0.0

3.0.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp queue background deferred tasks

31/03 2015

2.2.0

2.2.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

  Sources   Download

MIT

The Requires

 

cakephp queue background deferred tasks

02/03 2015

2.1.0

2.1.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides dereferred task execution.

  Sources   Download

MIT

The Requires

 

cakephp queue background dereferred tasks

12/12 2014

2.0.0

2.0.0.0 http://github.com/dereuromark/cakephp-queue

The Queue plugin for CakePHP provides dereferred task execution.

  Sources   Download

MIT

The Requires

 

cakephp queue background dereferred tasks