Request Coalescing in Nginx
Posted
by
Marcel Jackwerth
on Server Fault
See other posts from Server Fault
or by Marcel Jackwerth
Published on 2012-06-08T10:06:08Z
Indexed on
2012/06/08
10:41 UTC
Read the original article
Hit count: 264
I have an image resize server sitting behind an nginx server.
On a cold cache two clients requesting the same file could trigger two resize jobs.
client-01.net GET /resize.do/avatar-1234567890/300x200.png
client-02.net GET /resize.do/avatar-1234567890/300x200.png
It would be great if only one of the requests could go through to the backend in this situation (while the other client is set 'on-hold').
In Varnish there seems to be such a feature, called Request Coalescing. However that seems to be a Varnish-specific term. Is there something similar for Nginx?
© Server Fault or respective owner