2025-09-14 –, Track 2
Join me as I share a hands-on approach to load testing Python apps with Locust and monitoring them in real time using Grafana and Prometheus. I'll show you how to simulate user behavior, identify bottlenecks, and set up clear, practical dashboards. Drawing from my experience with microservices, I’ll offer real tips to help you quickly spot issues and scale your applications efficiently. This talk is designed for anyone looking to boost their app’s performance with proven, straightforward techniques.
1. Introduction & Problem Statement
Kick off with a quick intro about why load testing matters for Python applications.
Explain common performance issues and the need to detect bottlenecks before production.
2. Overview of Tools
Introduce Locust as a tool for simulating user behavior and generating load.
Explain how Prometheus collects metrics and how Grafana can be used to visualize them in real time.
3. Setting Up the Environment
Walk through installing Locust and writing a basic test script for a Python app.
Show how to configure Prometheus to scrape metrics from your application and Locust.
4. Building Practical Dashboards
Demonstrate setting up Grafana dashboards to monitor key performance indicators during tests.
Discuss how to choose and configure the most useful metrics for troubleshooting.
5. Live Demonstration & Troubleshooting
Run a live demo that integrates the load testing script with real-time monitoring.
Highlight how to interpret the dashboards and identify performance bottlenecks.
Share practical tips on what to look for and how to respond.
6. Real-World Insights
Present examples from actual projects, discussing issues encountered and solutions implemented.
Provide actionable advice based on lessons learned from previous experiences.
7. Q&A and Wrap-Up
Open the floor for questions and discussion.
Summarize key takeaways and provide pointers for further exploration.
Intermediate
Hi, I’m Allen! I’m a Product Engineer at UST, where I build GraphQL APIs for Python-based microservices that work closely with MongoDB. I’m passionate about using technology to solve real-world problems and love helping my teammates and peers grow along the way. I’ve spoken at the Trivandrum Python Meetup and have the exciting opportunity to speak at both PyCascades 2025 and the FOSSASIA Summit 2025 in Bangkok, where I’ll be sharing my experience in Python development and API design.