No, there is not one built-in. Check in the documentation on how to avoid "stampeding". http://code.google.com/p/memcached/wiki/NewProgrammingTricks#Avoiding_stampeding_herd
- Nelz On Fri, Oct 14, 2011 at 08:45, Mak <[email protected]> wrote: > I have a scenario, > > * Lets say there are 100's of same request to a web server. > * Server talks to external client ( may be DB or some other > Application) to run the request and get results. > * Before it talks it tries to find if its memcached, so in this case > the key does not exist and memcached returns "not found'. Since the > requests are distributed amongst many servers by load balancer, every > server end up calling memcached for the same request. > * Until the first request is stored in the memcached ( the duration > of which depends on the external client), all requests end up calling > external client. > > Is there a feature in memcached server or cleint to make the requests > sleep/wait if there are simultaneous requests are for the same key. > > Thanks in advance for the help.
