Slide 1

Slide 1 text

PHPQueue in Action Case Study: IslamicEvents.sg Tuesday, 29 January, 13

Slide 2

Slide 2 text

Michael Cheng Senior Software Engineer, mig33 http://twitter.com/coderkungfu http://github.com/miccheng Tuesday, 29 January, 13

Slide 3

Slide 3 text

Problem • Daily prayer reminders via Facebook. • Facebook publishing is failing. • Cron Jobs & messy MySQL gymnastics. • Unable to reach audience fully. Tuesday, 29 January, 13

Slide 4

Slide 4 text

Solution • Implement a queuing system that can be scaled onto multiple servers. • Use Beanstalkd & PHPQueue. • Batch processing using Facebook's batch request API. Tuesday, 29 January, 13

Slide 5

Slide 5 text

PHP-Queue https://github.com/miccheng/php-queue https://packagist.org/packages/coderkungfu/php-queue Tuesday, 29 January, 13

Slide 6

Slide 6 text

Result • Increase reach by 80%. • Facebook Page Likes increased from 12,000 to 15,000 in a few weeks. • Zero maintenance. • Git deployment using Bitbucket. Tuesday, 29 January, 13

Slide 7

Slide 7 text

Lessons Learnt • Facebook's Batch Request API does not work as advertised. • Continuous Deployment is a god-sent. • Continuous Integration is important, even in small projects. Tuesday, 29 January, 13