# Is that possible to queue request one by one

**URL:** <https://www.ruby-forum.com/t/is-that-possible-to-queue-request-one-by-one/223991>\
**Category:** NGINX\
**Created:** [October 25, 2012, 8:53pm UTC](https://www.ruby-forum.com/t/is-that-possible-to-queue-request-one-by-one/223991 "2012-10-25T20:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 25, 2012, 8:53pm UTC](https://www.ruby-forum.com/t/is-that-possible-to-queue-request-one-by-one/223991/1 "2012-10-25T20:53:17Z")

</div>

Hi

nginx module limit\_req only can limit request frequency by url param  
key.  
it delay a request by “ngx\_add\_timer(r-\>connection-\>write, delay)”.

my requirement is a little bit different. i need the next request be  
process immediately after the prev one have done.  
i have tried to use “ngx\_http\_cleanup\_add”. but it seem that the  
ngx\_http\_request\_t is not in shared mem, i can’t use  
“ngx\_add\_timer(r-\>connection-\>write, 0)” to notify the next request.

thx
