To load test on a larger scale, we'll need to use a cloud-based service that is capable of sending a massive volume of concurrent requests to our application. Blitz.io is one of the leading cloud load-testing tools. It is highly configurable and allows us to send requests from multiple locations throughout the world. With Blitz, we can more closely imitate real-user traffic by ramping up the number of visitors over a period of time. This allows us to see the upper limit of our current infrastructure. Having this knowledge allows us to prepare for any events where we will be expecting a large volume of visitors.
Before we start load testing with Blitz, we'll need to install the add-on using the following steps:
Let's open up a terminal and navigate to the Heroku application that we want to load test. Then, we can add Blitz by running the following command:
$ heroku addons:add blitz
After installing the add-on, we can use the open command...