Skip to content
ADHDecode
  1. Home
  2. Articles
  3. Locust

Locust Articles

49 articles

Locust Bottleneck Detection: Find Slow Endpoints Under Load

When you're running Locust tests and suddenly see a ton of 500 errors or your throughput plummets, it's usually because one of your endpoints is drownin.

6 min read

Locust in GitHub Actions: Automate Load Tests in CI

GitHub Actions can orchestrate load tests using Locust, but its execution often fails due to network isolation and resource constraints.

5 min read

Locust CSV Stats: Export Results for Analysis

Locust's CSV stats are actually a log of every single request, not just a summary, and that's why they're so powerful for deep dives.

3 min read

Locust Custom Clients: Load Test Non-HTTP Protocols

A custom Locust client lets you load test anything, not just HTTP. Let's say you need to test a WebSocket chat application

4 min read

Locust Custom Load Shapes: Model Real Traffic Patterns

Locust Custom Load Shapes: Model Real Traffic Patterns — practical guide covering locust setup, configuration, and troubleshooting with real-world examp...

2 min read

Locust Data Parameterization: Test with Real User Data

The surprising truth about Locust data parameterization is that its core mechanism isn't about injecting "real user data" at all; it's about ensuring yo.

3 min read

Locust Database Load Testing: Stress Test Queries

Locust's database load testing often reveals that the database itself is the bottleneck, not your application code's ability to make the requests.

5 min read

Locust Distributed Mode: Scale Load with Master-Worker

Locust distributed mode lets you run load tests across multiple machines, which is crucial when your single-machine capacity isn't enough.

3 min read

Locust in Docker: Containerized Load Testing Setup

The most surprising thing about running Locust in Docker is that it doesn't automatically handle distributed testing for you; you have to explicitly con.

3 min read

Locust Environment Config: Manage Test Settings

The most surprising thing about Locust's environment configuration is that locust --help doesn't actually show you all the ways you can configure it.

3 min read

Locust Events and Hooks: Extend with Custom Logic

Locust's event system lets you inject custom logic into your load tests at precisely the right moments, transforming a simple script into a sophisticate.

3 min read

Locust FastHTTP: High-Performance HTTP Load Testing

Locust's FastHTTP client is surprisingly capable of outperforming Python's built-in requests library for load testing, even with simple use cases.

2 min read

Locust First Test: Write Your First Locustfile

You're going to write your first Locustfile, and the most surprising thing is how little code it actually takes to simulate thousands of users.

2 min read

Locust Getting Started: Install and Run in 5 Minutes

You can run a distributed load test with Locust in under 5 minutes, and the most surprising thing is how little infrastructure you actually need to get .

2 min read

Locust Gevent: Concurrent Coroutines for Scale

Locust's gevent integration is the secret sauce for handling tens of thousands of concurrent users on a single machine, and it does it by not using thre.

3 min read

Locust + Grafana: Real-Time Load Test Dashboards

Grafana makes load testing feel like air traffic control for your application, not just a black box that spits out pass/fail results.

3 min read

Locust gRPC Testing: Load Test Protobuf Services

Locust, the open-source load testing tool, can be surprisingly effective at stressing gRPC services, especially when dealing with Protobuf.

3 min read

Locust Headless Mode: Run Load Tests via CLI

Locust's headless mode lets you run load tests programmatically, which sounds simple, but the real magic is how it forces you to decouple your test exec.

2 min read

Locust HttpUser: Configure Tasks and Request Patterns

Locust's HttpUser isn't just a way to define user behavior; it's a sophisticated system for modeling how users interact with your HTTP service, and the .

3 min read

Locust + InfluxDB: Store and Query Load Test Metrics

The most surprising thing about using Locust with InfluxDB is that the primary benefit isn't just storing metrics, but unlocking the ability to correlat.

3 min read

Locust Install: Set Up Python Load Testing

Locust's core innovation is that it lets you write load tests in Python, a language most developers are already fluent in.

2 min read

Locust on Kubernetes: Scale Distributed Load Testing

Locust on Kubernetes allows you to distribute your load testing across multiple pods, bypassing the single-machine limitations of traditional load testi.

3 min read

Locust Microservices Load Testing: Test Every Service

Load testing individual microservices in isolation is a common pitfall; the real stress emerges when they interact under load.

3 min read

Locust MQTT Load Testing: Stress Test IoT Brokers

MQTT load testing is surprisingly difficult because most load testing tools are designed for request/response protocols, not persistent connections and .

3 min read

Locust on_start and on_stop: Manage Test Session State

The onstart and onstop hooks in Locust aren't just for setup and teardown; they're the primary mechanism for managing shared state across your entire di.

3 min read

Locust Percentiles: Analyze P95 and P99 Response Times

Locust's percentile statistics are actually a historical artifact, and most users are better off using a different, more robust metric entirely.

2 min read

Locust Performance Tuning: Maximize Users Per Worker

The surprising truth about maximizing Locust users per worker is that it's less about tuning Locust itself and more about understanding and optimizing t.

2 min read

Locust Production Strategy: Continuous Load Testing

Continuous load testing in production is a powerful strategy to uncover performance regressions before they impact users, but it requires careful consid.

3 min read

Locust Prometheus Exporter: Scrape Test Metrics

The Locust Prometheus Exporter doesn't actually scrape metrics in the way a typical Prometheus exporter does; it's more of a publisher that pushes metri.

3 min read

Locust Async Support: Use asyncio in Load Tests

Locust's async support isn't just about making your tests faster; it fundamentally changes how you think about concurrency in load testing by treating I.

4 min read

Locust Ramp-Up and Spikes: Model Complex Load Patterns

Locust's ramp-up and spike features let you simulate more realistic user load patterns than just a steady-state increase.

3 min read

Locust Results Analysis: Interpret Failure Rates and Latency

Locust's failure rate and latency metrics are not just numbers; they're a direct readout of how your application is performing under stress, and often, .

4 min read

Locust Slow Requests: Diagnose and Debug Bottlenecks

Locust's "Slow Requests" warning isn't about your application being slow; it's about Locust's master process being too busy to tell the workers to stop .

4 min read

Locust Soak Tests: Run Long-Duration Stability Tests

Locust Soak Tests: Run Long-Duration Stability Tests — practical guide covering locust setup, configuration, and troubleshooting with real-world examples.

3 min read

Locust Spike Test: Simulate Sudden Traffic Surges

A load testing tool can actually cause the very performance problems it's designed to find. Let's say you're trying to simulate a sudden, massive influx.

3 min read

Locust Stress Test: Find Your System Breaking Point

Locust is a load testing tool that lets you simulate a massive number of concurrent users on your system, allowing you to find its breaking point before.

3 min read

Locust Tags: Run Subsets of Load Test Scenarios

Locust tags let you selectively run portions of your load test, which is incredibly useful when you have a large, complex test suite.

2 min read

Locust Test Plans: Design Realistic Load Scenarios

Designing a Locust test plan that accurately reflects real-world user behavior is the hardest part of performance testing.

5 min read

Locust User Classes: Inherit and Compose Test Behaviors

You can achieve code reuse and a more organized structure in your Locust tests by inheriting from existing User classes and composing behaviors.

2 min read

Locust vs Gatling: Python vs Scala Load Testing

Locust and Gatling are both excellent load testing tools, but they approach the problem from fundamentally different angles, leading to distinct advanta.

3 min read

Locust vs JMeter: Code-First vs GUI Load Testing

Locust actually makes writing load tests easier than GUI-driven tools like JMeter, because it forces you to think like a developer about your tests.

2 min read

Locust vs k6: Python vs JavaScript Load Testing

Locust and k6 are both popular open-source load testing tools, but they differ significantly in their language of choice, execution model, and how they .

3 min read

Locust Wait Times: Simulate Real User Think Time

When you're simulating user behavior with Locust, blindly hitting endpoints as fast as possible doesn't reflect reality.

2 min read

Locust Web UI: Monitor and Control Tests in Browser

The Locust Web UI is more than just a dashboard; it's a dynamic command center where you can spin up and tear down load test scenarios, observe performa.

3 min read

Locust Task Weights: Control How Often Tasks Run

Task weights in Locust are the primary mechanism for controlling the relative frequency with which different tasks are executed by your simulated users.

2 min read

Locust API Load Testing: Simulate 10K Users in Python

Locust API Load Testing: Simulate 10K Users in Python — practical guide covering locust setup, configuration, and troubleshooting with real-world examples.

3 min read

Locust Assertions: Validate API Responses in Load Tests

Locust assertions are the unsung heroes of load testing, turning raw response data into actionable insights about your API's health.

3 min read

Locust Auth Simulation: Load Test Login Flows

The most surprising thing about load testing authentication is that the real bottleneck is rarely the authentication mechanism itself; it's the downstre.

3 min read

Locust Baseline Tests: Establish Performance Benchmarks

The most surprising thing about Locust baseline tests is how often they're run incorrectly, leading to benchmarks that are not just useless, but activel.

3 min read
ADHDecode

Complex topics, finally made simple

Courses

  • Networking
  • Databases
  • Linux
  • Distributed Systems
  • Containers & Kubernetes
  • System Design
  • All Courses →

Resources

  • Cheatsheets
  • Debugging
  • Articles
  • About
  • Privacy
  • Sitemap

Connect

  • Twitter (opens in new tab)
  • GitHub (opens in new tab)

Built for curious minds. Free forever.

© 2026 ADHDecode. All content is free.

  • Home
  • Learn
  • Courses
Esc
Start typing to search all courses...
See all results →
↑↓ navigate Enter open Esc close