# Features

**URL:** <https://www.ruby-forum.com/t/features/229396>\
**Category:** NGINX\
**Created:** [February 4, 2013, 7:59am UTC](https://www.ruby-forum.com/t/features/229396 "2013-02-04T07:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/71e660/32.png) [@cris](https://www.ruby-forum.com/u/cris)\
**Post date:** [February 4, 2013, 7:59am UTC](https://www.ruby-forum.com/t/features/229396/1 "2013-02-04T07:59:55Z")

</div>

Hello

I added some features to version 1.2.3, but since nginx moves forward,  
I’d  
like to see if there’s a way to put those as permanent patch

The features refers to limit\_rate\_after directive and a new one  
limit\_rate\_max, both used to control bandwidth.

I changed limit\_rate\_after to take a variable as well, not just config.  
I also added limit\_rate\_max to control the speed of the initial bytes  
sent  
that are defined with limit\_rate\_after.

So basically right now I can send 2MB at a speed of 600KB and then slow  
down at 100KB.

This is extremely useful for video streaming websites with huge traffic,  
I  
save a lot of bandwidth and get able to serve many more users at the  
same  
time.

My config looks something like:

limit\_rate\_max 600k;  
if ($arg\_u) {  
set $limit\_rate\_max $arg\_u;  
}

limit\_rate\_after 2m;  
if ($arg\_burst) {  
set $limit\_rate\_after $arg\_burst;  
}

Here I can tell through the url what speed and when to slowdown, based  
on  
user account, so premium users receive the video and start playback  
faster.  
Is anyone interested to push this changes/features to nginx dev team?
