concurrencygatling

Gatling concurrent requests


Need to build a scenario where I make an API call first and use the response from the 1st API call to call another API concurrently (say up to 5 times).

How do I do it?

Tried repeat which is doing it serially.

Tried group and it didn't work.


Solution

  • That would be resources, eg:

    .resources(
        Stream
            .of(http("name").get("url"))
            .limit(5)
            .toArray(HttpRequestActionBuilder[]::new)
    )