1 of 9

Removing Cron From The PHP Workflow

OpenWest Conference 2013

Friday, 03 May 2013 at 10:30

Track 260 - PHP

Presenter: Dan Hunsaker

2 of 9

About Me

3 of 9

WARNING!

These slides and the presenter's remarks only COMPLEMENT each other - any overlap between the two will be minimized to key points and memory aids. There is a high degree of probability that this presentation will make little or no sense through the slides alone. This will be your only warning.

4 of 9

Standard Cron Workflow

5 of 9

"Poor-Man's Cron" Workflow

6 of 9

"Cron-Free PHP" Workflow

7 of 9

Cron-Free PHP

External Software

Required:

  • UNIX-based OS
  • Web Server
  • PHP 5.3+
    • pcntl
    • posix
    • json
  • Redis
  • Composer
  • git

Suggested:

  • SQL RDBMS
  • phpredis
  • proctitle

Implied:

  • A project that can benefit from deferred execution

8 of 9

Cron-Free PHP

Where To Get It

danhunsaker/openwest-cronfreephp from:

  • BitBucket
  • GitHub (later today)

9 of 9

Cron-Free PHP

Demo Project

$ php index.php resque_engine workers

$ php index.php resque_engine scheduler

http://example.com/cronfree