parallelized requests

Jan Pfeifer pfjan at
Tue Jan 23 02:37:45 UTC 2007

Thanks for the answer Brad.

I also noticed that the PHP client does the same thing. So if the whole network packets fits the buffers, I believe this would be as good as if it were parallelized. Sweet :)

----- Original Message ----
From: Brad Fitzpatrick <brad at>
To: Jan Pfeifer <pfjan at>
Cc: memcached list <memcached at>
Sent: Wednesday, January 17, 2007 4:49:17 PM
Subject: Re: parallelized requests

Iirc, the Perl library sends all the requests, then reads all the
responses (but in order, not as they're readable).  That partially
mitigates the multiple-server round-trip pain.

Making it read from the sockets back in order would matter more if
memcached weren't so damn quick.

On Wed, 10 Jan 2007, Jan Pfeifer wrote:

> hi all,

I'm setting up a cache layer here at work that will
probably be composed by 4 servers (or maybe 2 dual core ones). For our
use case, we might need to get on average 10 keys to build a web page,
but possibly up to 200 small key/values, or even more in very rare

My question is: do the C or the PHP libraries parallelize
the requests for the keys to the different cache servers when using the
multi-key request ? Or does it fetch the keys one server at a time ?

thx in advance for any answers or pointers :)


if this have been asked before (seems a basic question to me), it's the
first time I'm using memcached, and I couldn't find anything by
searching in the list.

Any questions? Get answers on any topic at  Try it now.

Yahoo! Music Unlimited
Access over 1 million songs.

More information about the memcached mailing list