perl - Why is FastCGI fast? -


fastcgi provides way improve performance of thousands of perl applications have been written web. -source

and how that?

mark r. brown's whitepaper on subject claims 1 of primary benefits of fastcgi different requests can share single cache, making caching practical:

today's deployed web server apis based on pool-of-processes server model. web server consists of parent process , pool of child processes. processes not share memory. incoming request assigned idle child @ random. child runs request completion before accepting new request. typical server has 32 child processes, large server has 100 or 200.

in-memory caching works poorly in server model because processes not share memory , incoming requests assigned processes @ random. instance, keep frequently-used file available in memory server must keep file copy per child, wastes memory. when file modified children need notified, complex (the apis don't provide way it).

fastcgi designed allow effective in-memory caching. requests routed child process fastcgi application server. fastcgi application process maintains in-memory cache.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -