Programming S3, EC2, SQS, and FPS (Programming)
| |||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||
| Sort customer reviews by: | |||||||||||||||||||||||||||||
|
Show All Reviews on Page
Hide All Reviews on Page
| |||||||||||||||||||||||||||||
| Programming S3, EC2, SQS, and FPS (Programming) | |||||||||||||||||||||||||||||
|
Written specifically for developers, this book reveals the background and knowledge they need to take advantage of Amazons Simple Storage Service and Elastic Compute Cloud subscription services.
|
|||||||||||||||||||||||||||||
|
Product Description
Building on the success of its storefront and fulfillment services, Amazon now allows businesses to "rent" computing power, data storage and bandwidth on its vast network platform. This book demonstrates how developers working with small- to mid-sized companies can take advantage of Amazon Web Services (AWS) such as the Simple Storage Service (S3), Elastic Compute Cloud (EC2), Simple Queue Service (SQS), Flexible Payments Service (FPS), and SimpleDB to build web-scale business applications. With AWS, Amazon offers a new paradigm for IT infrastructure: use what you need, as you need it, and pay as you go. Programming Web Services explains how you can access Amazon's open APIs to store and run applications, rather than spend precious time and resources building your own. With this book, you'll learn all the technical details you need to: Store and retrieve any amount of data using application servers, unlimited data storage, and bandwidth with the Amazon S3 service Buy computing time using Amazon EC2's interface to requisition machines, load them with an application environment, manage access permissions, and run your image using as many or few systems as needed Use Amazon's web-scale messaging infrastructure to store messages as they travel between computers with Amazon SQS Leverage the Amazon FPS service to structure payment instructions and allow the movement of money between any two entities, humans or computers Create and store multiple data sets, query your data easily, and return the results using Amazon SimpleDB. Scale up or down at a moment's notice, using these services to employ as much time and space as you need Whether you're starting a new online business, need to ramp upexisting services, or require an offsite backup for your home, Programming Web Services gives you the background and the practical knowledge you need to start using AWS. Other books explain how to build web services. This book teaches businesses how to take make use of existing services from an established technology leader. Create HTML POST Forms That Allow Your Web Site Visitors to Upload Files Into Your S3 Account Using a Standard Web Browser By James Murty, creator of the JetS3t Java S3 library and author of Programming Amazon Web Services Amazon’s Simple Storage Service (S3) provides cheap and unlimited online data storage for anyone with a credit card and an Amazon Web Service (AWS) account. If you have an AWS account, you can interact with the S3 service using specialized tools to upload and manage your files. It is very convenient to have access to this online storage resource for yourself, but there may be situations where you would like to allow others to upload files into your account. For this purpose, S3 accepts uploads via specially-crafted and pre-authorized HTML POST forms. You can include these forms in any web page to allow your web site visitors to send you files using nothing more than a standard web browser. In this article, I will demonstrate how to build simple S3 POST forms. I will assume that you have already signed up for the S3 service, and that you have an S3 client program for creating buckets and viewing files in your account. Before you proceed, create your own bucket to store uploaded files — in the examples below I will use a bucket named s3-bucket. POST Form Web PageHere is a web page with an S3 POST Form that you can use as a template for your own forms: This template demonstrates some important features of an S3 POST form, and the web page that contains it:
The S3 service uses information from the form’s input fields to authorize uploads, and to set the properties of uploaded file objects. Here is a description of the most common input fields:
This overview of the form’s input fields should help you to modify the template POST form to suit your own purposes. At a minimum, you will need to edit the form’s To complete the form and make it acceptable to the S3 service, you will also need to generate a policy document and signature value. Policy DocumentS3 POST forms include a policy document that authorizes the form and imposes limits on the files that can be uploaded. When S3 receives a file via a POST form, it will check the policy document and signature to confirm that the form was created by someone who is allowed to store files in the target S3 account. A policy document is a collection of properties expressed in JavaScript Object Notation, which simply means that the document’s structure and content must conform to a certain format. Every policy document contains two top-level items:
Here is a policy document corresponding to the POST form template above. This policy has an To create a valid S3 POST form, you must include a policy document whose Because our template POST form includes the input fields There are three kinds of rules you can apply in your policy document:
It is important to make sure that your policy document corresponds exactly to your S3 POST form. If there are any discrepancies between the input field values in your form and the rule values in your policy document, or if your form contains input fields that do not have corresponding rules in your policy, the S3 service will reject the form and return an incomprehensible XML error message to your users. Sign Your S3 POST FormTo complete your S3 POST form, you must sign it to prove to S3 that you actually created the form. If you do not sign the form properly, or if someone else tries to modify your form after it has been signed, the service will be unable to authorize it and will reject the upload. To sign your form you need to perform two steps:
Almost all programming languages include libraries for performing these two steps. Here are some example code fragments to do the job with different languages, assuming you have already defined the variables Ruby Java Python Once you have calculated the values for the ConclusionThe form web page and policy document templates in this article should give you a starting point for creating your own upload forms. With some minor modifications to the template documents and a little coding, you will be able to create authorized forms that make it easy for your web site visitors to upload files to your S3 account. The S3 service’s POST support is a powerful feature with many potential uses. You could create a single upload form to allow your friends and colleagues to send you files that are too large for email, or you could modify your web applications to generate forms on-demand so your users can store their data in S3 rather than on your own server. Just remember that you will be liable for any S3 data transfer and storage fees incurred by the people who use your forms. |
|||||||||||||||||||||||||||||
| Reader Reviews 1 - 7 of 7 | |||||||||||||||||||||||||||||
| Review Date |
Review Rating(5 High) |
Review Helpful to: |
Customer Review | Reviewer Info |
Permanent Link |
||||||||||||||||||||||||
| Reader Reviews Below Sorted by Newest First | |||||||||||||||||||||||||||||
| 11-10-08 | 3 | 0\1 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
As mentioned in other reviews of this book, there are a lot of Ruby examples. If this book were completely written using Java or C#, this would have been a 4-5 star book. If nothing else, include examples with other languages as well.
(Review Data Last Updated: 2008-11-30 06:24:56 EST)
|
|||||||||||||||||||||||||||||
| 07-02-08 | 4 | 2\2 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
Excellent resource, but a bit droll. The content is laid out well, there are plenty of (working) examples, and there's pretty much no fluff to the book at all (in contrast to many O'Reilly books which add a fair amount of humor and distraction).
My chief worry when I received the book was that the title on the spine said "Programming Amazon Web Servcies [sic]". Yes, really the spine has a typo! The cover page does *not* have the typo. Obviously I was worried that the content might have similar brazen errors. But so far not so. I'd recommend this book for anyone who needs an EC2/S3/AWS reference. (Review Data Last Updated: 2008-11-11 06:37:38 EST)
|
|||||||||||||||||||||||||||||
| 06-10-08 | 4 | (NA) |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
'Programming Amazon Web Services: S3, EC2, SQS, FPS, and SimpleDB' is a good resource for anyone that is using the Amazon suite of web products and need to learn more about how to get the most out of these powerful set of web 2.0 tools.
For anyone that doesn't know what these tools are, here's a quick one-liner about each: S3 - online storage to store and retrieve data EC2 - online computing to be able to run jobs on a farm of machines SQS - web messaging infrastructure for computer-computer communication FPS - flexible payment system for moving money online SimpleDB - store and retrieve datasets online I like the content of this book and feel that it plays an important part in this niche market but my major qualm is that the code is written solely in Ruby in this book. While that might appeal to a certain market, to only have this communication in Ruby and/or not use a more traditional language of the day I feel is a major mistake. For this reason alone I knock a star off but still recommend it to anyone looking to learn or use these incredibly cool technologies provided by amazon. **** RECOMMENDED (Review Data Last Updated: 2008-07-02 05:33:03 EST)
|
|||||||||||||||||||||||||||||
| 05-17-08 | 4 | 5\5 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
This is a good overview of the suite of services that comprise Amazon Web Services (AWS), I'd have given it a 3.5 star rating if I could. It talks about all of them, but it spends the bulk of its time, very reasonably, discussing S3 (the persistent storage system) and EC2 (the compute cloud - basically Amazon's Rackspace in the clouds) - each getting about 100 pages devoted to it.
As others have noted it is out of date - but any book would have the same problem due to the moving target that AWS is. The biggest news is that EC2 is going to be getting persistent storage, which I believe will change the game completely when it is rolled out to the public. Instead of needing some elaborate connection with S3, now instances will behave much more like a typical physical machine with real disk drive. The book, on the other hand, provides almost no real advice on how to deal with the problem of non-persistence of EC2's current storage mechanism. This is a signifcant problem that everyone will have to deal with and glossing over it is a failing of the book. This is also a Ruby book, which I found fairly annoying. Nowhere in the description does it suggest that it is done in Ruby. And while Ruby certainly is trendy these days, the actual number of Ruby developers is small - it gets undue weight in computer texts. At the end of the day, though, it generally provides the actual request strings and XML requests and responses for non-ruby folk to come to their own conclusions. This is a worthwhile book to get if you're interested in quickly getting a good and broad idea on how to work with AWS. It will give a good foundation to get more out of the documentation and forums found on Amazon's AWS site itself. (Review Data Last Updated: 2008-06-12 07:30:42 EST)
|
|||||||||||||||||||||||||||||
| 05-11-08 | 4 | (NA) |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I'd have rated this a 4.5 if I could have.
This is an excellent book covering a very new subject matter. My only major complaint is that it seems a little rushed - I've found several typos, and even one section where a couple of lines of (important for that section) code are missing. (I figured out what was missing as I'm sure most people will.) Also, the book is out of date. However, that is not the fault of the author or the publisher! It is that Amazon's service changes so quickly. The author and the publisher have made every attempt to mention the most recent changes to the service as of the time of writing, including pointing to places on the web to find out more information. The material it covers is spot on. It goes through the different services that Amazon offers - including their storage, elastic computing, payment systems, and database systems. It clearly explains the disadvantages and advantages of each system, and provides -useful- code examples (in ruby) of how one can take advantage of the services Amazon provides. (There are examples in other languages, like Python, that the author makes available on the book's website.) Each section is devoted to a service for the most part, and the book is very readable. As I said, I'd have rated this book a 4.5 if I could have. Outside of the errors due to rushing, it's quite useful and quite informative. The code is easy to follow, and I've found it very handy for working with the Amazon Web Services. (Review Data Last Updated: 2008-05-18 07:32:31 EST)
|
|||||||||||||||||||||||||||||
| 04-10-08 | 2 | 5\12 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
Well.. I have pre-ordered that book back in Feb and was very anxious to get it. I read it cover to cover and could not find any how-tos, migration paths, implementation ideas, etc.. AWS is a new concept so many IT Directors and sysasdmins who have previously deployed "three tier" structure (DB - MiddleLayer - Web server) are desperate to find how to migrate your typical "data center" / "managed service" / "colocation" into Amazon web cloud (EC2 /S3)- besides lots of Ruby examples that book has little to offer: no structure, no migration. Bottom line: if you want to start fresh and "play" with AWS -this one is for you, if you manage 4 or 5 or 20 data centers and concern about how many servers do you really need and how to move your high availability application to Amazon - you need to look elsewhere.
(Review Data Last Updated: 2008-05-17 04:49:03 EST)
|
|||||||||||||||||||||||||||||
| 04-04-08 | 4 | 0\1 |
| Reviewer | Permalink | ||||||||||||||||||||||||
|
I am reading this book on Safari, where it appeared before the hard copy was available. It also avoided snail mail, and this allowed me to be the first reviewer.
The book is about one of the hottest offerings in the software and surely will be read by many people, if only because it is the first book on this subject. It goes through detailed examples and explains the code. You could, potentially, get most of the same information from the tutorials, excepting maybe the bugs and workarounds which are not for the polished company publications. My only wish is that the examples were not written in Ruby, which today ranks 10th on the TIOBE rating. The explanation that "it is easy to read" seems weak. I would venture to say the author felt more comfortable in Ruby. The upshot was that I learned to read a new language and found out about some new techniques that are cross-language, such as XPath. I would recommend this book if only because reading it will make you feel more cozy with AWS, before you go to the tutorials and code samples. Chapter 3 is a good overview of pros and cons of AWS, which you can show to your management if they are uncomfortable with the cloud. And good luck on the cloud adventure. (Review Data Last Updated: 2008-04-11 07:44:03 EST)
|
|||||||||||||||||||||||||||||
| Reader Reviews 1 - 7 of 7 | |||||||||||||||||||||||||||||
| All Books | Arts | Biography | Click Here For An A-Z Index Of All 213 Best-Seller Subjects | Business | Children's | Comics | ||||||
| Computers | Cooking | Engineering | Entertainment | Health | History | Home | Horror | Humor | Law | Fiction | Medicine | Mystery |
| Nonfiction | Outdoors | Parenting | Professional | Reference | Religion | Romance | Science | Sci-Fi | Sports | Teens | Travel | |