Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Learning to load test with Siege


Siege is an open source application that simulates a massive burst in traffic by sending a configurable number of concurrent connections to our application. It's a perfect way to get introduced to executing a basic load test. There are many load-testing services available, but it's useful to be able to execute one on our own with just a laptop. It's also a nice bonus as it's completely free.

In this recipe, we will learn how to install Siege and then run a load test against our application. Siege has an abundance of different configuration options; we'll learn how to use them. In this recipe, we will be pushing our app to a limit and can have some fun with load testing. We shouldn't run this against a production application; it's fairly easy to overload an application with Siege. We wouldn't want to interrupt any real users because of a test.

Getting ready

First, we'll need to download Siege and get it installed on our machine using the following steps:

  1. Let's...