# Single proxy connection on identical simultaneous requests

**URL:** <https://www.ruby-forum.com/t/single-proxy-connection-on-identical-simultaneous-requests/201797>\
**Category:** NGINX\
**Created:** [January 14, 2011, 7:04pm UTC](https://www.ruby-forum.com/t/single-proxy-connection-on-identical-simultaneous-requests/201797 "2011-01-14T19:04:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 14, 2011, 7:04pm UTC](https://www.ruby-forum.com/t/single-proxy-connection-on-identical-simultaneous-requests/201797/1 "2011-01-14T19:04:33Z")

</div>

Hi,

I’m wondering if there’s some way to avoid multiple proxy\_pass(ing) to  
a  
concurrent identical request at a given moment.

The situation is that I have a gazillion identical requests which are  
not cached yet.  
So, when the first non-cached request is handled, it is redirected to my  
backend  
server to retrieve and respond on that request. The problem is that I  
have too many  
identical requests hitting on my backend server simultaneously. Since  
all other “active”  
connections are the same as the first one, why dont they just wait for  
response  
from the first one, avoiding unnecessary backend connections?

How could I do something like this?

Posted at Nginx Forum:

> **[Single proxy connection on identical simultaneous requests](https://forum.nginx.org/read.php?2,166333,166333#msg-166333)**
>
> Hi, I'm wondering if there's some way to avoid multiple proxy\_pass(ing) to a concurrent identical request at a given moment. The situation is that I have a gazillion identical requests which are not cached yet. So, when the first non-cached request...

---

<div class="post-metadata">

**Author:** ![caruccio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/258eb7/32.png) [@caruccio](https://www.ruby-forum.com/u/caruccio)\
**Post date:** [January 14, 2011, 8:04pm UTC](https://www.ruby-forum.com/t/single-proxy-connection-on-identical-simultaneous-requests/201797/2 "2011-01-14T20:04:47Z")

</div>

Hello!

On Fri, Jan 14, 2011 at 01:02:24PM -0500, caruccio wrote:

> identical requests hitting on my backend server simultaneously. Since  
> all other “active”  
> connections are the same as the first one, why dont they just wait for  
> response  
> from the first one, avoiding unnecessary backend connections?
> 
> How could I do something like this?

This is usually called “busy locks” here, and not yet implemented.

Maxim D.
