APC 和清漆
我使用 varnish 进行反向代理,使用 apc 进行操作码缓存。
有人在同一个网站上使用过两者吗?
两者之间的兼容性是否存在开销?
我个人的观点是,两者都不属于彼此的领域,但希望根据个人经验快速发表意见。
谢谢
I am using varnish for reverse proxy and apc for op-code caching.
Have anyone used both for same site ?
Is there an overhead between compatibility between both ?
My personal opinion is that both are not into each other domain but wanted a quick opinion based on any personal experience.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你是对的,他们不在同一个域中。
使用两者没有任何开销。 APC 在 PHP 系统下运行并加快 PHP 执行时间。
Varnish 位于浏览器客户端和 HTTP 进程(apache/lighttpd/etc)之间,并缓存对网络服务器的访问。
You're correct they're not in the same domain.
There is no overhead for using both. APC functions underneath your PHP system and speeds up your PHP execution time.
Varnish sits between your browser client, and your HTTP process (apache/lighttpd/etc) and caches visits to the webserver.
我没有这种情况的经验,但据我所知应该没有问题。如果代理“命中”,则请求无论如何都不会到达应用程序,因此 apc 不会受到影响。如果未命中,apc 应该加速 php。我看不出有任何理由,为什么这应该是一个坏主意。
I don't have experience with this scenario, but as far as I can see there should be no problem. If the proxy "hits", the request doesn't reach the application anyway, thus apc is not touched. If its miss, apc should speedup php. I don't see any reason, why it should be a bad idea.
确认的。我正在这样做,除了我的 APC 缓存配置不正确之外,这确实有奇迹。
Confirmed. I am doing just this and aside from my APC cache not being configured correctly this works wonders.