3 ms·
I'm starting to notice that App Engine's memcache is incredibly slow. If serving up a page requires one memcache hit (for, say, caching entire response objects)
by gcv 16y ago
I'm starting to notice that App Engine's memcache is incredibly slow. If serving up a page requires one memcache hit (for, say, caching entire response objects), it works well. If it starts to require, say, a dozen, the response time slows to ~700ms at best, and ~4s at worst.
- deleted 16y ago[deleted]
- powera 16y agoCan you do the memcache calls in parallel with get_multi? Unless you're doing something like retrieving 1MB objects, it should take no more than 10ms per memcache call even if they are done in serial.
- StavrosK 16y agoOh wow, that's surprising and somewhat disconcerting. Do you have any sort of reference? If true, it's very serious.
- gcv 16y agoI have no exact data at the moment. I looked through my application's logs and compared the response times in situations when the front page loads from a full-page cache entry and when it has to build the page from multiple pieces of memcached data. If I find time, I'll write a small benchmark application which tests memcache performance. Empirically however, App Engine's "memcache" is pretty slow.