# Does nginx serialize SCGI requests?

**URL:** <https://www.ruby-forum.com/t/does-nginx-serialize-scgi-requests/210749>\
**Category:** NGINX\
**Created:** [August 16, 2011, 4:34pm UTC](https://www.ruby-forum.com/t/does-nginx-serialize-scgi-requests/210749 "2011-08-16T16:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 16, 2011, 4:34pm UTC](https://www.ruby-forum.com/t/does-nginx-serialize-scgi-requests/210749/1 "2011-08-16T16:34:48Z")

</div>

I am a happy user of mod\_scgi.

For the in-house web apps we develop, concurrent overlapping requests  
involving SCGI have been a non-issue sofar. This would change for sure  
as soon as the web apps are exposed to the internet.

But in our custom SCGI backend resp. the application logic written in  
Lua, almost no provision for locking shared resources such as files open  
for writing exists sofar.

Thus my question: is nginx serializing concurrent SCGI requests for me,  
buffering subsequent requests as long as a pending request is not  
finished by the SCGI server/backend? Or do I have to bite the bullet and  
implement locking etc. in the face of concurrent requests?

Thanks a lot in advance, nginz\_zurich

Posted at Nginx Forum:

> **[does nginx serialize SCGI requests?](https://forum.nginx.org/read.php?2,213853,213853#msg-213853)**
>
> I am a happy user of mod\_scgi. For the in-house web apps we develop, concurrent overlapping requests involving SCGI have been a non-issue sofar. This would change for sure as soon as the web apps are exposed to the internet. But in our custom SCGI...

---

<div class="post-metadata">

**Author:** ![nginx\_zurich](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/d07c76/32.png) [@nginx\_zurich](https://www.ruby-forum.com/u/nginx_zurich)\
**Post date:** [August 16, 2011, 4:49pm UTC](https://www.ruby-forum.com/t/does-nginx-serialize-scgi-requests/210749/2 "2011-08-16T16:49:00Z")

</div>

On Aug 16, 2011, at 18:34 , nginx\_zurich wrote:

> Thus my question: is nginx serializing concurrent SCGI requests for me,  
> buffering subsequent requests as long as a pending request is not  
> finished by the SCGI server/backend? Or do I have to bite the bullet and  
> implement locking etc. in the face of concurrent requests?

nginx does not serialize requests.

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**
