# Question about throttle

**URL:** <https://community.gatling.io/t/question-about-throttle/1297>\
**Category:** Gatling (Open-Source)\
**Created:** [August 18, 2014, 10:58pm UTC](https://community.gatling.io/t/question-about-throttle/1297 "2014-08-18T22:58:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Everton\_Lima\_Aleixo](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@Everton\_Lima\_Aleixo](https://community.gatling.io/u/Everton_Lima_Aleixo)\
**Post date:** [August 18, 2014, 10:58pm UTC](https://community.gatling.io/t/question-about-throttle/1297/1 "2014-08-18T22:58:56Z")

</div>

```auto
Hi people, I was reading the gatling documentation and can not understand the following:

```

```auto

```

```auto
setUp(...).throttle(
  reachRps(100) in (10 seconds)
)

```

```auto

```

```auto
this snap code will throw a total of 1000 request to my server, dissolved in 10 seconds (without control the time that each request will occour)?

```

```auto
Or it will do 100 requests in each second? (throwing each 100 request at the same initial milisseconds of each second)

```

```auto

```

```auto
Since now, thanks.

```

---

<div class="post-metadata">

**Author:** ![Nadine\_Whitfield](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@Nadine\_Whitfield](https://community.gatling.io/u/Nadine_Whitfield)\
**Post date:** [August 20, 2014, 5:15am UTC](https://community.gatling.io/t/question-about-throttle/1297/2 "2014-08-20T05:15:36Z")

</div>

100 requests per second is the highest rate your simulation/script will attain.  
The 10 seconds indicates the rate at which this change will happen.

---

<div class="post-metadata">

**Author:** ![Alex\_Bagehot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Alex\_Bagehot](https://community.gatling.io/u/Alex_Bagehot)\
**Post date:** [August 20, 2014, 7:13am UTC](https://community.gatling.io/t/question-about-throttle/1297/3 "2014-08-20T07:13:19Z")

</div>

Ideally this needs a good test in RC2 - is anyone currently using it?

---

<div class="post-metadata">

**Author:** ![Andre\_Piwoni](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Andre\_Piwoni](https://community.gatling.io/u/Andre_Piwoni)\
**Post date:** [September 4, 2014, 5:15pm UTC](https://community.gatling.io/t/question-about-throttle/1297/4 "2014-09-04T17:15:50Z")

</div>

It does not seem to work for me in the following simpulation:

val scn = scenario(“My Scenario”)  
.forever(  
feed(feeder)  
.exec(doNothingAction)  
)

setUp(scn.inject(atOnceUsers(10)).throttle(reachRps(100) in (1 second), holdFor(30 seconds))).maxDuration(30 seconds)

Final result is 75K requests per second!!!

Andre

---

<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:** [September 4, 2014, 6:46pm UTC](https://community.gatling.io/t/question-about-throttle/1297/5 "2014-09-04T18:46:18Z")

</div>

Throttle is not a generic mechanism, it’s currently only implemented for HTTP.

Actions are generic. You wouldn’t want a loop or a pause to be throttled.
