apache - Web Server Caches - in-memory vs the OS -



apache - Web Server Caches - in-memory vs the OS -

i'm not exclusively sure if question improve suited serverfault - however, since i'm programmer, , not sys-admin, i'm asking perspective of programmer.

these days there huge number of options available caching static web content. things varnish or squid used throughout industry.

however, i'm confused here. theoretical perspective, don't see how caching of static content requires utilize of 3rd party software apart web-server , os.

dynamic-content, (such as, result of expensive php script calculation or something), benefit caching system.

but static content, gain caching resources in memory? wouldn't os page cache already provide same benefits dedicated caching scheme varnish or squid? or missing of benefits?

varnish, in fact, stores info in virtual memory using mmap - , lets os handle page swapping. so, how different saving cached resources disk , opening them fread?

you correct. static resources, memory can set utilize page cache instead of using varnish.

chaining caches (varnish, pagecache) identical content compete same resource (server memory) silly.

if in add-on have dynamic content, may take combine , serve cache due operational reasons. illustration simpler collect access logs , statistics single software stack, two. applies things staff training , security patching.

apache web-services caching operating-system varnish

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -