Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP-Queue Case Study: IslamicEvents.sg

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

PHP-Queue Case Study: IslamicEvents.sg

Case study on how I optimised the Facebook publishing of prayer reminders for IslamicEvents.sg

Avatar for Michael Cheng

Michael Cheng

January 29, 2013

More Decks by Michael Cheng

Other Decks in Programming

Transcript

  1. Problem • Daily prayer reminders via Facebook. • Facebook publishing

    is failing. • Cron Jobs & messy MySQL gymnastics. • Unable to reach audience fully. Tuesday, 29 January, 13
  2. 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
  3. 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
  4. 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