简体   繁体   中英

Problems with hot key memcached

I have memcached keys that are as large as 2 MB and I can't reduce it, as the data has been already minified. It does go hot with many web servers accessing that key again and again. Is APC or shared memory a better solution?

Especially over slow network connections memcached could be significantly slower than local caches. Local caches can be significantly faster because they avoid the network delay and protocol overhead.

APC and shared memory have often quite small size limits so make sure you configure it in a right way.

Another alternative for bigger items might be local files. If they are used quite often the operating system will keep them in memory and there won't be any disk access.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM