# scenario sequence question

**URL:** <https://community.gatling.io/t/scenario-sequence-question/634>\
**Category:** Gatling (Open-Source)\
**Created:** [October 25, 2013, 9:04pm UTC](https://community.gatling.io/t/scenario-sequence-question/634 "2013-10-25T21:04:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jay](https://community.gatling.io/u/jay)\
**Post date:** [October 25, 2013, 9:04pm UTC](https://community.gatling.io/t/scenario-sequence-question/634/1 "2013-10-25T21:04:26Z")

</div>

Hi,

Thanks for Gatling, btw, it’s an awesome tool.

Anyway, I have a quick question about scenarios and how they are executed.

Let’s say I want to test a server with 2000 users and I have two chains that both execute one get request:

val userSignUpChain = …  
val userSendsEmailChain = …

And two two scenarios:

val userSignUpScn = scenario("…").exec(userSignUpChain)  
val userSendsEmailScn = scenario("…").exec(userSendsEmailChain)

And a setup like this:

setUp(  
userSignUpScn.users(2000).protocolConfig(httpConf),

userSendsEmailScn.users(2000)…protocolConfig(httpConf)

)

Do these scenarios run concurrently or sequentially?  
That is, if the script is configured this way (assuming no delays and both chains take the exact same time to finish), at max load my server will be processing 4000 requests?  
Or will it run the userSignUpScn first, and then run the userSendsEmailScn second, with a max load of 2000 user?

Thanks!

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [October 26, 2013, 7:01am UTC](https://community.gatling.io/t/scenario-sequence-question/634/2 "2013-10-26T07:01:35Z")

</div>

Hi,

Concurrently.

Cheers,

Stéphane

---

<div class="post-metadata">

**Author:** ![Floris\_Kraak](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@Floris\_Kraak](https://community.gatling.io/u/Floris_Kraak)\
**Post date:** [October 26, 2013, 8:21am UTC](https://community.gatling.io/t/scenario-sequence-question/634/3 "2013-10-26T08:21:59Z")

</div>

The question you need to ask is: 4000 requests per what, though.

---

<div class="post-metadata">

**Author:** ![Stefan\_Magnus\_Landro](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Stefan\_Magnus\_Landro](https://community.gatling.io/u/Stefan_Magnus_Landro)\
**Post date:** [October 26, 2013, 8:49pm UTC](https://community.gatling.io/t/scenario-sequence-question/634/4 "2013-10-26T20:49:53Z")

</div>

Also, beware, opening 4000 tcp connections at the same time might take a while.  
BTW, the reports and your server access logs will give you answers to your questions.

Stefan
