# FastCGI vs Proxy requests

**URL:** <https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310>\
**Category:** NGINX\
**Created:** [May 10, 2010, 4:07am UTC](https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310 "2010-05-10T04:07:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyrra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a183cd/32.png) [@Kyrra](https://www.ruby-forum.com/u/Kyrra)\
**Post date:** [May 10, 2010, 4:07am UTC](https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310/1 "2010-05-10T04:07:28Z")

</div>

I’m doing some playing around and I’m looking to implement a comet-type  
server behind Nginx. I’m wonder what would be a better interface to to  
connect my code with Nginx, using proxy to pass the request through or  
to forward it on with FastCGI.

I can understand that proxy pass-through would let me make my code just  
live on its own without Nginx if I want to some day. I’m just wondering  
if one is better than the other… or just pros/cons of the 2  
interfaces.

Thanks,  
-Kyrra

Posted at Nginx Forum:

> **[FastCGI vs Proxy requests](https://forum.nginx.org/read.php?2,84623,84623#msg-84623)**
>
> I'm doing some playing around and I'm looking to implement a comet-type server behind Nginx. I'm wonder what would be a better interface to to connect my code with Nginx, using proxy to pass the request through or to forward it on with FastCGI. I can...

---

<div class="post-metadata">

**Author:** ![Kyrra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a183cd/32.png) [@Kyrra](https://www.ruby-forum.com/u/Kyrra)\
**Post date:** [May 10, 2010, 5:15am UTC](https://www.ruby-forum.com/t/fastcgi-vs-proxy-requests/188310/2 "2010-05-10T05:15:56Z")

</div>

On Mon, May 10, 2010 at 10:06 AM, Kyrra [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I can understand that proxy pass-through would let me make my code just live on its own without Nginx if I want to some day. I’m just wondering if one is better than the other… or just pros/cons of the 2 interfaces.

AFAIK, ngx\_proxy is rather weak in that it dislikes chunked responses 🙂

Cheers,  
-agentzh
