Geschreven door James Twose

Loadtesting your API with Locust

Data1 minuut leestijd

Ever wondered how your API would perform under heavy load? Load testing is a way to simulate a high number of users accessing your API at the same time. This can help you identify bottlenecks in your system and help you optimize your API for better performance.

Well luckily enough one of our data engineers, James Twose, will give a video demo on how to use the open source Python framework Locust to load test your API.

At the end you will be able to:

  • Locally run a postgres database and a fastapi-sqlalchemy API using docker-compose
  • Understand what load testing is
  • Use Locust to load test your API
  • Analyze the results of your load testing

Watch the video below

We hope you enjoyed the demo and learned something new about load testing. If you have any questions or feedback, feel free to reach out to us on our social media channels. You can find the code for this demo here: https://github.com/jameshtwose/api-framework-comparison