1. DynamoDB for PHP Session Storage
25 April 2012
Andreas Chatzakis
@achatzakis on twitter
AWSUG Greece
Not affiliated with, sponsored or endorsed by AWS
2. Sessions in the cloud
Sticky sessions?
Memcache?
MySQL?
Redis?
Enter DynamoDB:
Highly available – Consistently performing
Persistent
AWS SDK now includes drop in PHP session
handler replacement
2
6. Install & Configure SDK
Install the latest version of the SDK on your web server
image - http://aws.amazon.com/sdkforphp/
Update config.inc.php with
the credentials of the user we created in step 1
the default-cache-config parameter (we went for apc, as it is
already running on our instances.)
any other parameters depending on your specific setup details
(the file is well documented)
6
9. Considerations
Estimate read/write throughput requirements
Validate post go live
Does your application need locking? By default
php implements pessimistic locking.
The class provided by AWS supports it
Configure it to FALSE if you dont need it (this will
decrease costs and increase performance).
Thorough testing would be required to validate your
selection.
9