Single proxy connection on identical simultaneous requests

Maxim Dounin mdounin at mdounin.ru
Fri Jan 14 22:04:00 MSK 2011


Hello!

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

> 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?

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

Maxim Dounin



More information about the nginx mailing list