06. Exercise: Locust Load Testing

Exercise: Locust Load Testing

Load testing is a critical part of developing a reliable Microservice. This allows you to verify that the application can perform at scale. In this exercise, you will set up a basic load test with locust.

Instructions

  • Install locust using instructions here.
  • Configure a basic load test of the predict service endpoint in the sample app as shown here.
  • How many requests does your application accept before latency significantly rises or it crashes?
  • Come up with a solution that will scale this on your own laptop or desktop (consider whether you can use some of the scaling techniques in the last lesson here!).
  • Verify that you have solved your first bottleneck and increased the requests per second at least 10% higher.