Host Your Web Site On The Cloud is the OFFICIAL step-by-step guide to this revolutionary approach to hosting and managing your websites and applications, authored by Amazon's very own Jeffrey Barr.
''Host Your Web Site in the Cloud'' shows you just how easy it is to host your website in the cloud with Amazon Web Services. We'll show you how cloud computing can save time, money, and stress. The process of hosting & developing on the cloud has never been simpler!
This book will help you:
- gain a thorough understanding of cloud computing
- master the fundamentals of Amazon Web Services
- transfer existing websites & applications to the cloud
- install and configure visual and command line tools
- store, retrieve, and distribute data quickly and easily
- build applications that scale
- manage the monitoring, load balancing, and scaling capabilities of cloud computing
As a developer, you need room & flexibility to be innovative. Why waste time worrying about the technical aspects of server capacity? AWS handles security, load balancing, and server resources virtually so you're not restricted to one physical server.
Author(s): Jeff Barr
Edition: 1
Publisher: SitePoint
Year: 2010
Language: English
Pages: 394
Host Your Web Site in the Cloud......Page 4
Table of Contents......Page 10
Preface......Page 20
What’s Covered in This Book?......Page 22
Updates and Errata......Page 24
Your Feedback......Page 25
Markup Samples......Page 26
Tips, Notes, and Warnings......Page 27
Welcome to Cloud Computing......Page 30
Avoiding a Success Disaster......Page 31
Tell Me about Cloud Computing!......Page 32
What’s a Cloud?......Page 33
The Programmable Data Center......Page 34
Characterizing the Cloud......Page 37
Some Common Misconceptions......Page 39
Cloud Use Cases......Page 42
Software Development Life Cycle Support......Page 43
Training......Page 44
Disaster Recovery and Business Continuity......Page 45
Business and Scientific Data Processing......Page 46
Just Recapping......Page 47
Amazon and AWS Overview......Page 50
Protocols......Page 51
Dollars and Cents......Page 53
Key Concepts......Page 54
Access Identifiers......Page 55
Elastic IP Address......Page 56
Amazon Simple Storage Service......Page 57
Amazon CloudFront......Page 58
Amazon SimpleDB......Page 59
Amazon Elastic Compute Cloud......Page 60
Other Services......Page 62
What We’ve Covered......Page 63
Skills Expectations......Page 64
Hardware and Software Expectations......Page 65
Optional but Recommended......Page 66
Tool Considerations......Page 67
Language Libraries......Page 68
Command Line Tools......Page 69
Visual Tools......Page 70
AWS Management Console......Page 71
ElasticFox......Page 72
S3Fox......Page 73
CloudBerry Explorer......Page 74
Bucket Explorer......Page 75
SimpleDB Explorer......Page 76
Ylastic......Page 77
Creating an AWS Account......Page 78
Obtaining Your AWS Keys......Page 80
Running the PHP Code in This Book......Page 82
Installing CloudFusion......Page 84
Where We’ve Been......Page 86
S3 Overview......Page 88
The S3 Pricing Model......Page 91
CloudFront Overview......Page 92
Creating an S3 Bucket......Page 93
Listing Your S3 Buckets......Page 97
Bucket Listing as a Web Page......Page 98
Listing Objects in a Bucket......Page 99
Processing Complex CloudFusion Data Structures......Page 101
Listing Objects in a Bucket as a Web Page......Page 104
Uploading Files to S3......Page 109
Creating and Storing Thumbnail Images......Page 113
Creating a CloudFront Distribution......Page 119
Listing CloudFront Distributions......Page 120
Listing S3 Files with Thumbnails......Page 121
Finally......Page 126
The Programmable Data Center......Page 128
Amazon EC2 Overview......Page 129
Persistent and Ephemeral Resources......Page 130
Amazon EC2 Terminology......Page 131
Instance Use......Page 136
AMI Storage......Page 137
Creating and Preparing an SSH Key......Page 138
Preparing PuTTY on Windows......Page 140
Launching Your First Instance......Page 141
Enabling SSH Access......Page 144
Connecting with PuTTY on Windows......Page 145
Connecting with the Mac OS X or Linux Terminal......Page 147
Now We’re Connected......Page 148
Assigning an IP Address......Page 149
Creating an EBS Volume......Page 150
Testing Apache......Page 152
Running Some Code......Page 153
Shutting Down......Page 155
The AMI Catalog......Page 156
Creating a Custom AMI......Page 158
Planning......Page 160
Image Preparation......Page 161
Image Scrubbing......Page 162
Image Creation......Page 163
Reusing and Sharing the AMI......Page 164
Using the EC2 API......Page 165
Closing Thoughts......Page 169
Why Asynchronous Messaging?......Page 170
Asynchronous Messaging Patterns......Page 172
Terminology and Concepts......Page 175
Watch Out For …......Page 176
Programming Amazon SQS......Page 177
Creating a Queue......Page 178
Listing Queues......Page 179
Inserting Items into Queues......Page 180
Extracting Items from Queues......Page 181
Introducing JSON......Page 184
Building an Image Crawler......Page 185
Definitions and Utility Functions......Page 186
Crawl Queue Status Command......Page 188
Crawl Loader Command......Page 189
Stage 1: Fetching the HTML......Page 191
Stage 2: Parsing HTML and Extracting Image URLs......Page 194
Stage 3: Fetching Image URLs......Page 197
Stage 4: Rendering Images......Page 200
Running the Code......Page 205
Wrapping Up......Page 206
Introduction......Page 208
Horizontal Scaling......Page 209
Monitoring, Scaling, and Load Balancing......Page 210
Installing the Command Line Tools......Page 211
Amazon CloudWatch Concepts......Page 215
Amazon CloudWatch Operation......Page 216
Amazon CloudWatch from the Command Line......Page 217
Listing Available Metrics......Page 219
Charting Multiple Metrics......Page 221
Why JMeter?......Page 230
Installing and Running JMeter......Page 231
Creating a Test Plan......Page 232
Viewing the Results......Page 233
Going Further with JMeter......Page 235
Elastic Load Balancing Concepts......Page 236
Elastic Load Balancing Processing Model......Page 237
Elastic Load Balancing in Operation......Page 239
Auto Scaling......Page 244
Auto Scaling Processing Model......Page 245
Auto Scaling in Operation......Page 248
Programming Auto Scaling......Page 250
Wrapping It Up......Page 251
Introduction......Page 252
Amazon SimpleDB Concepts......Page 253
Amazon SimpleDB Programming Model......Page 255
Amazon SimpleDB Pricing......Page 256
Programming Amazon SimpleDB......Page 257
Creating a Domain......Page 258
Storing Data......Page 259
Storing Multiple Items Efficiently......Page 261
Running a Query......Page 264
Advanced Queries......Page 266
Augmenting Items with Additional Data......Page 269
Storing Multiple Values for an Attribute......Page 270
Accessing Attribute Values......Page 271
Deleting Attributes......Page 272
Deleting Items......Page 273
Monitoring Domain Statistics......Page 274
Processing and Storing RSS Feeds with Amazon SimpleDB......Page 276
All Stored......Page 287
Introduction......Page 288
Amazon RDS Concepts......Page 290
DB Instance Hours......Page 295
Data Transfer......Page 296
Tour the Console......Page 297
Launching a DB Instance......Page 299
Configure a DB Security Group......Page 301
Access the DB Instance......Page 303
Import Some Data......Page 304
Monitor Instance Performance......Page 305
Initiate a Snapshot Backup......Page 306
Scale-up Processing......Page 307
Scale-up Storage......Page 309
Convert to Multi-AZ......Page 310
And That’s a Wrap......Page 311
Account Activity......Page 314
Access to Usage Data......Page 316
Importing Usage Data......Page 317
Querying Account Data......Page 323
Retrieving and Displaying Usage Data......Page 325
EBS from the Command Line......Page 331
EBS Snapshots......Page 333
EBS Public Data Sets......Page 337
EBS RAID......Page 338
EC2 Instance Metadata......Page 342
Dynamic Diagramming......Page 346
Conclusion......Page 358
Designing the Application......Page 360
Utility Functions and Programs......Page 361
The Web Front End......Page 373
The New Item Submission Form......Page 378
And That’s It......Page 383
Index......Page 384