Feeding inside resources()?

Hi,

I have a simulation where I pull requests from a json file. In order to pull the requests concurrently, as the app would, I’m using resources() with a predefined number of requests.

The problem is that I can’t update the feeder inside resources, so I’m just repeating the same request multiple times.

`

.repeat(5) {
  feed(requests)
    .exec(http("My URL").get(my_url).silent
      .resources(
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect,
        http("${path}").get(base_url + "${url}").disableFollowRedirect
      )
    )
}

`

Is there any way to update the feeder inside resources()? Or some other way to do concurrent requests?

Thanks,
Roberto

If the number of resources is fixed, with no fetch the expected number or records altogether.
See note here: http://gatling.io/docs/2.1.6/session/feeder.html#feeders