HTTP polling is an extension to the HTTP DSL, whose entry point is the
If you want to deal with several pollers with per virtual users, you have to give them a name and pass this name on each polling operation:
Of course, this step is not required if you deal with one single poller per virtual user.
The first thing to do is start the polling, by specifying the request and how often it will run:
exec( polling .every(10 seconds) .exec(http("name").get("url")) )
When you don’t need to poll a request anymore, you can stop the poller:
Stopping a poller works works in the same fashion as SSE or WebSockets
When stopping a poller, the poller flow state (e.g. the session) is merged with the main flow state.