Вопрос

I am making a web app that will process large files (1gb+). While the files are being uploaded, I need to be able to access the file data (whatever is uploaded so far), and also possibly change the location of these uploaded files (currently with mongrel they are in TMP folder).

I know I shouldn't be using RoR to do this as it's too high level. I would need to work with the server like Mongrel or Unicorn, or maybe Rack which as i learned is like a glue between web server and framework like RoR.

My question is,

  1. What server/framework (Mongrel, Unicorn, Thin, etc) should I use?
  2. Any documentation/guide that will point me to right direction to make this web app
  3. Do you recommend doing this with Ruby? I.E, should this be done at a much lower level (like Nginx plugin), or using a Ruby server which stops on top of Nginx is fine?

Thanks

Это было полезно?

Решение

I would definitely recommend looking at EventMachine.

On top of that, I'd use the em-http-request library for streaming file uploads (think of it as async Net::HTTP)

You might find this talk from Ruby Manor comparing Goliath, Node.js and EM useful as well.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top