From the course: Google Cloud Professional Data Engineer Cert Prep (2025)

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Demo: Load testing with Locust

Demo: Load testing with Locust

- [Instructor] All right, let's get into load testing, an important way to make sure that your application is going to do what you think it's going to do when you put it into production, you want to simulate what's happening, look at the resources involved, maybe test auto-scaling. So we're going to take a look at this tool called Locust here. And to get started, we can just select documentation. And the first place to get into this is to look at installation here. And notice we just do a PIP install. So if I go over to this environment here, I notice I have a virtual environment sourced and I just go through here and I say, PIP install and install Locust. It's already installed here. In fact, we can double check. We can say which Locust. And you can see it's actually in this environment. The only other thing we need to do is actually go to writing a Locust file and put something together where we actually map out…

Contents