title: Is using Amazon s3 as a database (of sorts) for a PHP app a bad decision?
body: <p>I'm teaching myself JavaScript and PHP by building an app, and I decided I would like to use Amazon EC2 and S3 as the platform. My question is about using S3 as a "database", but I'll start with a bit of background.</p>
  
  <p>The app uses this class to interact with S3 buckets: <a href="http://undesigned.org.za/2007/10/22/amazon-s3-php-class/documentation#getObject" rel="nofollow">http://undesigned.org.za/2007/10/22/amazon-s3-php-class/documentation#getObject</a></p>
  
  <p>When a user logs into the app, the app will download a file from a S3 bucket. Every user has their own file. Using JSON, it will then bring the data client side, and then most of the "interaction" is client side (using JavaScript) and a bit of PHP. Once the user is done (probably after 30 minutes or so), the app will then save/upload and replace the S3 file.</p>
  
  <p>My reasoning behind all of this is that I <em>think</em> the app will be very scalable. My hope is that I can use load balancing, with each instance being able to interact directly with S3. If lots of users log on, I can simply create lots of "micro" or "small" instances to handle them all. One of the drawbacks of EC2 is if the instance crashes or goes offline, all the data is lost, so my thoughts are that instead of constantly having to back up everything - why not build the app around S3 in the first place?</p>
  
  <p>My question: Does this make sense? Is there a reason I haven't seen many examples of this kind of thing "in the real world"?</p>
  
  <p>Thank you so much for your time!</p>
  
  <p>Cheers,</p>