HTTP polling is an extension of the Gatling HTTP SDK that lets a virtual user send the same request repeatedly on a fixed schedule, running in a separate flow alongside the main scenario steps. This is useful for simulating real-world patterns where browsers periodically check for updates, refresh tokens, or poll a status endpoint while the user continues navigating the application. The period is measured from the moment a response is received to when the next request is sent.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gatling/gatling.io-doc/llms.txt
Use this file to discover all available pages before exploring further.
Starting a Poller
Start polling by callingpoll().every(period).exec(request). The period can be expressed as an integer number of seconds or as a duration.
Stopping a Poller
When you no longer need a poller, stop it withpoll().stop(). Stopping a poller merges its flow state (including any session values it captured) back into the main flow’s session.
Multiple Pollers per Virtual User
If a virtual user needs to run more than one simultaneous poller, give each one a unique name usingpollerName. The same name must be passed when stopping the corresponding poller.
If you only have one poller per virtual user,
pollerName is optional. The name is only required when multiple pollers need to be distinguished.