2

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?

1 Answer 1

3

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

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .