Skip to Content
Programming Amazon Web Services
book

Programming Amazon Web Services

by James Murty
March 2008
Intermediate to advanced
604 pages
18h 38m
English
O'Reilly Media, Inc.
Content preview from Programming Amazon Web Services

Web Photo Album with Gallery 2

One way you may wish to experiment with the EC2 service is to try running a basic web application in the service. In this application, we will demonstrate how to deploy a photo management application called Gallery 2 (http://gallery.menalto.com/) on an instance to give a brief overview of the steps you will need to take to set up the application in the EC2 environment. Most of these steps will be familiar to readers who already have experience running their own servers, which demonstrates the similarity between administering a physical server and one in EC2.

In addition to installing and configuring the photo management application, we will implement a basic back-up process to save the application’s data in S3. This process will protect against data loss due to instance failures by performing regular backups. We will also provide a corresponding restore process, so you can get the application up and running again quickly should your instance fail.

Note

Although this example serves as an interesting application for an EC2 instance, we do not recommend that you run photo-sharing web sites in EC2. There are cheaper hosting services available to do simple tasks like this without the need to implement your own back-up strategy. EC2 is a better option for more sophisticated applications in which you need full control over your own servers, or where you can take advantage of the service’s ability to provide a scalable server pool to meet demand.

Launch an EC2 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

AWS SysOps Cookbook - Second Edition

AWS SysOps Cookbook - Second Edition

Eric Z. Beard, Rowan Udell, Lucas Chan

Publisher Resources

ISBN: 9780596515812Errata Page