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

Google App Engine for PHP: CMS Africa Summit Pr...

Google App Engine for PHP: CMS Africa Summit Presentation

Presented by Anthony Nandaa on Friday 7th March 2014, at CMS Summit Africa - http://summit.cmsafrica.org/

Anthony Nandaa

March 07, 2014
Tweet

More Decks by Anthony Nandaa

Other Decks in Technology

Transcript

  1. About Me  Computer Scientist / Developer  UX/Design 

    Lead at @gdgnairobi  Works at @c4dlab  Started @deveint, @beyondelabs, etc. (Budding IT businesses)  Partner at @slaterecreation, a technology fused fitness and recreation startup  Play bass-guitar at Calvary Chapel Nairobi and @ahadiband  Born to build – people, great things, anything.
  2. I’m here to convince you, to go shut down your

    servers, and move to Google App Engine.
  3. Outline  Why Google App Engine (GAE)?  Major components

    of GAE:  CloudSQL  Google Cloud Storage  Memcache  Task Queues  Demo – Wordpress on GAE
  4. Why Google App Engine?  Scalability  Use the same

    resources used to power robust products by Google like:  Search, YouTube, Gmail, Android Playstore, etc.
  5. PHP finally on GAE  PHP is now even more

    awesome  New kid on the block:  Java  Python  Go  PHP
  6. Components of GAE  Cloud SQL  A fully managed

    MySQL 5.5 compatible database service  Highly durable, highly available  Automatic backup and one-click restoration  Reservation or usage pricing  Optimised for use with GAE (security & performance)
  7. Components of GAE  Managing files with Google Cloud Storage

     Fast, reliable and durable  Fine grained access control  Can be used to publish public web content  Access your files from GAE, RESTful APIs or web-based GUI
  8. Components of GAE  Google Cloud Storage for PHP 

    App Engine provides stream support for reading and writing to cloud storage buckets $handle = fopen(“gs://my_bucket/foo.jpg”,”w”); $handle = fwrite($handle, $data_to_write); fclose($handle); $text = file_get_contents(“gs://my_bucket/shakespear.txt” );
  9. Components of GAE  Memcache  App Engine provides a

    zero-configuration memcache service that works out of box $memcache = new Memcache; $memcache->set(„foo‟,‟bar‟); print $memcache->get(„foo‟); $memcached = new Memcached; $memcached->set(„foo‟,‟bar‟); print $memcached->get(„foo‟);
  10. Addendum  Official: https://developers.google.com/appengine/docs/php/  Wordpress on GAE tutorial -

    https://developers.google.com/appengine/docs/php/getting started/installinglinux  3 minutes overview of GAE - http://youtu.be/CJbmJ1W5wys