[FASTCGI] FastCGI performance

Jay Sprenkle jsprenkle at gmail.com
Thu Oct 23 21:34:24 EDT 2008


>
>        Does FastCGI framework implement any sort of buffering? If my
> request handler in FastCGI app writes a lot of data by small chunks do I
> have to implement buffering myself to cache data and send it in one call or
> the framework does this already? I know FastCGI framework wraps data into
> packet so if no caching it implemented this may cause performance hit, I
> guess.
>
> The connection between the fastcgi app and the web server can be via tcp or
named pipes. Generally those are buffered by the operating system so your
fastcgi application doesn't buffer them.

You should probably performance test buffering data and delivering it in one
large lump to see if it's faster than letting the operating system do it.
Since you probably want to use named pipes if you want speed then my guess
would be it's probably about the same either way.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20081023/bb4357e4/attachment.html>


More information about the FastCGI-developers mailing list