2. Introduction
Jeff Barr, Sr. Evangelist Ryan Parman, PHP
Based in Seattle Development Engineer
Author of Based in Seattle
“Host Your Website in the Creator of the PHP SDK
Cloud”
3. Office Hours IS
Simply, Office Hours is a program the enables a
technical audience the ability to interact with AWS
technical experts.
We look to improve this program by soliciting
feedback from Office Hours attendees. Please let us
know what you would like to see.
4. Office Hours is NOT
Support
If you have a problem with your current deployment
please visit our forums or our support website
http://aws.amazon.com/premiumsupport/
A place to find out about upcoming services
We do not typically disclose information about our
services until they are available.
5. Agenda
What’s New
How-to Demonstrations
Dynamically Instantiate Infrastructure
Scalable Processing Pipeline
Question and Answer
Please begin submitting questions now
6.
7. Programming AWS With PHP
We’ll use the free AWS SDK for PHP libraries from
http://aws.amazon.com/sdkforphp
8. SDK Basics
Download and unpack
Add directory to PHP’s include_path
Add AWS keys to config.inc.php
define('AWS_KEY', 'J35NTGFCQOIUY3OMNSQQ');
define('AWS_SECRET_KEY',
'99pizu2vVOK11rk9UAgWVj7PBGzWwertqJlgLV0c');
Include one file:
require_once('sdk.class.php');
19. Building a Scalable Image Processing Pipeline
Fetch a web page, store in Amazon S3
Parse page and extract links to images
Fetch first 16 images on page, store in Amazon S3
Render images as composite image
21. Architecture Attributes
Simple
Each stage is easy to understand
AWS reduces low-level coding
Scalable
Add more processes
Add more instances
Add more stages
Storage any amount of data
Fault Tolerant
Messages remain in queues until processed
Messages reappear in queues if process dies
Asynchronous
Each stage runs at its own speed
Build, test, run one stage at a time