Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Maybe, "cache lock" is what you're looking for?

share|improve this answer
    
Awesome. Thanks! –  Marcel Jackwerth Jun 8 '12 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.