Guest Posted February 6, 2012 Share Posted February 6, 2012 Im getting into fastcgi and im really loving the possibilities but from my point of view it looks pretty linear like it can only process one thing at a time? Is that true? Im worried if I server up large files would it have to wait for one to finish before the next one starts? I would use fcgi to send files because I need to add a security layer. Quote Link to comment https://forums.phpfreaks.com/topic/256544-fastcgi-one-at-a-time/ Share on other sites More sharing options...
trq Posted February 7, 2012 Share Posted February 7, 2012 mod_php is the preferred method of using php with Apache. FastCGI is allot slower because it needs to actually startup a new process on each request. Quote Link to comment https://forums.phpfreaks.com/topic/256544-fastcgi-one-at-a-time/#findComment-1315314 Share on other sites More sharing options...
Guest Posted February 7, 2012 Share Posted February 7, 2012 I know im on phpfreaks but I posted in the other software section im not talking about php im talking about fastcgi and fastcgi uses the same process for multiple requests thats where my concern is does it have to wait for the first request to finish before it moves on to the second one? Quote Link to comment https://forums.phpfreaks.com/topic/256544-fastcgi-one-at-a-time/#findComment-1315350 Share on other sites More sharing options...
kicken Posted February 7, 2012 Share Posted February 7, 2012 I've never used FastCGI so I'm not well versed in it. This is just my understanding of the process, not sure on it's accuracy. uses the same process for multiple requests thats where my concern is does it have to wait for the first request to finish before it moves on to the second one? FastCGI does re-use the same process for requests yes, but it does not use the same process for all requests. It will spawn several processes which all process requests as they come in. FastCGI will distribute the requests among all these processes as they come in so there shouldn't be any, or much anyway, waiting around for requests to complete. Quote Link to comment https://forums.phpfreaks.com/topic/256544-fastcgi-one-at-a-time/#findComment-1315393 Share on other sites More sharing options...
Guest Posted February 7, 2012 Share Posted February 7, 2012 Hmm sounds right I hope it works like that im putting together a few long running tests to make sure. Quote Link to comment https://forums.phpfreaks.com/topic/256544-fastcgi-one-at-a-time/#findComment-1315395 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.