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

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

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

Posted at Nginx Forum:,70082,70082#msg-70082

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs