Preface

Among all enterprise workloads, ecommerce is unique because of the extreme variability in traffic. The chart in Figure 1 shows the number of page views per second over the course of the month of November for a leading US retailer.[1]

November page views for a leading US retailer
Figure 1. November page views for a leading US retailer

The amount of hardware required varies substantially over the course of a month, day, or even hour, yet provisioning a production environment to 500% of annual peak for the entire year is common. A large US retailer recently sold $250 million online over a seven-day period, yet their CPU utilization, which is their bottleneck, never topped 15%.

Having spent my career deploying large ($1 billion+/year in annual revenue) ecommerce platforms and later building the technology under these platforms, I am always struck by the fear-driven inefficiencies and fashion-driven dogmatism that permeates every aspect of our trade. Aside from being wasteful, the real problem is distraction from your core business. We are at a juncture in history where a fundamental change is required. We can do better than the status quo.

Cloud computing, having matured over the past decade, is now to the point where it can finally be used for large-scale ecommerce. Cloud offers the promise to scale up and down dynamically to match your real-time needs. You pay for only what you need and you can use as much as you want. The cloud vendor deals with all of the work that goes into building infrastructure, platforms, or services, allowing you to focus on your core business. “It just makes so much sense,” is what most people say about the combination of ecommerce and cloud, yet “Are you crazy?” is what most people say when you actually propose its use.

In this book, I’ll show you how cloud computing, particularly public Infrastructure-as-a-Service, is evolutionary from a technology standpoint and revolutionary from a business standpoint. Using what you already know, I’ll show you how you can quickly and incrementally adopt cloud computing for any ecommerce platforms, whether packaged or custom and new or legacy. Cloud computing is firmly on the “right” side of history, and I hope you’ll join me in exploring how it can be applied to the most challenging of use cases: ecommerce.

Note

Software-as-a-Service ecommerce offerings are not in the scope of this book.

Intended Audience

This book is for architects and aspiring architects who wish to learn more about cloud computing and how the top ecommerce vendors can leverage the cloud. While the first chapter focuses on the current state of ecommerce, the remainder of the book focuses on the architecture required to use the cloud for ecommerce. The principles contained within are also easily applied to other transactional web applications. If you can deploy a large-scale ecommerce platform in a cloud, you can deploy anything.

Contents of This Book

This book is organized into three parts.

In Part I, we’ll look at the current trends in ecommerce in Chapter 1 and the prevailing deployment architecture in Chapter 2.

In Part II, we’ll focus on cloud computing and its various incarnations. We’ll start out in Chapter 3 by discussing what cloud actually is, followed by how to auto-scale in Chapter 4, and how to automatically install and configure your software on the newly provisioned hardware in Chapter 5. Virtualization will be discussed in Chapter 6 and Content Delivery Networks in Chapter 7.

In Part III, we’ll discuss how to use cloud computing for ecommerce. We’ll start by discussing key architecture principles in Chapter 8, followed by security in Chapter 9, and then how to deploy to multiple geographically distant data centers in Chapter 10. In Chapter 11, we’ll discuss how to use a hybrid cloud. Chapter 12 discusses how to serve an entire platform from the cloud.

Conventions Used in This Book

The following typographical conventions are used in this book:

Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context.

Tip

This element signifies a tip or suggestion.

Note

This element signifies a general note.

Warning

This element indicates a warning or caution.

Safari® Books Online

Note

Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business.

Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at http://oreil.ly/ecommerce_in_the_cloud.

To comment or ask technical questions about this book, send email to .

For more information about our books, courses, conferences, and news, see our website at http://www.oreilly.com.

Find us on Facebook: http://www.facebook.com/oreilly

Follow us on Twitter: http://www.twitter.com/oreillymedia

Watch us on YouTube: http://www.youtube.com/oreillymedia

Acknowledgments

This book is the direct result of people who have invested in me—from my family to the hundreds of people who have helped me in some way throughout my career. I am perpetually humbled by people’s capacity for selfless acts of kindness.

Specifically, I’d like to thank my uncle, David Kroening, for introducing me to technology at an early age; my early mentor, Guy Morazain, for introducing me to ecommerce and launching my career; and Mohamad Afshar, for encouraging me to write this book and for mentoring me on the business side of technology.

I’d also like to thank my reviewers Mark Scarton, Devon Hillard, Vaskin Kissoyan, Scott Van Ummersen, Andy Powers, Leo Dolan, Jags Krishnamurthy, and Glen Borkowski for keeping me honest and for providing insights that have shaped this book.

Finally, I’d like to thank my amazing wife, Melissa. It’s only with her support that I was able to write this book and am able to focus on my career. She’s the best.



[1] Data courtesy of Akamai Technologies, 2013.

Get eCommerce in the Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.