<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_个人博客已迁移至codinglabs.org，博客园不再更新_分类_[16]Nginx&amp;Apache</title><id>http://feed.cnblogs.com/blog/u/35418/category/326075/rss</id><updated>2012-06-03T20:24:42Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leoo2sk/category/326075.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/35418/category/326075/rss"/><entry><id>http://www.cnblogs.com/leoo2sk/archive/2011/10/02/nginx-memc-and-srcache.html</id><title type="text">使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制</title><summary type="text">为了提高性能，几乎所有互联网应用都有缓存机制，其中Memcache是使用非常广泛的一个分布式缓存系统。众所周知，LAMP是非常经典的Web架构方式，但是随着Nginx的成熟，越来越多的系统开始转型为LNMP（Linux+Nginx+MySQL+PHP with fpm），这是因为Nginx采用基于事件机制的I/O多路复用思想设计，在高并发情况下其性能远远优于默认采用prefork模式的Apache，另外，相对于Apache，Nginx更轻量，同时拥有大量优秀的扩展模块，使得在Nginx上可以实现一些美妙的功能。传统上，PHP中使用memcache的方法是使用php-memcache或php-memached扩展操作memcache，然而在Nginx上有构建更高效缓存机制的方法，本文将首先介绍这种机制，然后介绍具体的操作步骤方法，最后将对这种机制和传统的PHP操作memcache的性能进行一个benchmark。</summary><published>2011-10-02T15:10:00Z</published><updated>2011-10-02T15:10:00Z</updated><author><name>T2噬菌体</name><uri>http://www.cnblogs.com/leoo2sk/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leoo2sk/archive/2011/10/02/nginx-memc-and-srcache.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leoo2sk/archive/2011/10/02/nginx-memc-and-srcache.html"/><content type="html"/></entry></feed>
