Memcache vs APC for a single server site data caching

后端 未结 6 1685
悲&欢浪女
悲&欢浪女 2021-01-30 13:54

I have a single server site thats pushing 200k unqiues per day, and the traffic doubles roughly every 40 days (for the last 5 months anyway).

I pretty much only plan to

6条回答
  •  情话喂你
    2021-01-30 14:50

    You want to compare APC key-value store vs Memcache right? Because APC also does opcode cache, which is a different thing.

    Well, on a single machine, APC k-v cache is way faster than memcache. Memcache has more functionality, but is intended for distributed environments, while APC works on single servers only.

    I did a benchmark recently to set and then get 1 million keys in both, each key was a sequential integer, and the values were a 32byte string.

    Over localhost, memcache could retrieve 12k keys/second in a single thread. APC returned 90K/second. However, if you use multi-threads or "multi_get" with memcache, it gets very close to APC performance.

    The benchmark ran on a 1GB vps at slicehost.

提交回复
热议问题