# Nginx+FCGI vs Nginx+Reverse Proxy, which is better when delivery big files?

**URL:** <https://www.ruby-forum.com/t/nginx-fcgi-vs-nginx-reverse-proxy-which-is-better-when-delivery-big-files/186144>\
**Category:** NGINX\
**Created:** [April 1, 2010, 7:25am UTC](https://www.ruby-forum.com/t/nginx-fcgi-vs-nginx-reverse-proxy-which-is-better-when-delivery-big-files/186144 "2010-04-01T07:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nightsailer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nightsailer](https://www.ruby-forum.com/u/nightsailer)\
**Post date:** [April 1, 2010, 7:25am UTC](https://www.ruby-forum.com/t/nginx-fcgi-vs-nginx-reverse-proxy-which-is-better-when-delivery-big-files/186144/1 "2010-04-01T07:25:20Z")

</div>

Hi:  
Anyone benchmark that? I need deploy a PSGI(Perl app) behind nginx,  
now, there’s two options:

1. Perl app deployed as FastCGI application, connect to nginx.
2. Perl app deployed as standalone PSGI web server, and nginx reverse  
proxy to it.

Notice, the perl application is read BIG file( size \> 30mb) from db and  
delivery to client, so I can’t to cache(like proxy\_cache)  
the request file. So, in this case, which solution is better ? any  
advice?

Nginx is event based, so is the FastCGI should be non-blocking?

Posted at Nginx Forum:

> **[Nginx+FCGI vs Nginx+Reverse Proxy, which is better when delivery big files?](https://forum.nginx.org/read.php?2,70082,70082#msg-70082)**
>
> Hi: Anyone benchmark that? I need deploy a PSGI(Perl app) behind nginx, now, there's two options: 1. Perl app deployed as FastCGI application, connect to nginx. 2. Perl app deployed as standalone PSGI web server, and nginx reverse proxy to it....
