RoundOutTooSoon
RoundOutTooSoon

Reputation: 9891

HTTP upload server in Ruby

I'm thinking to build an HTTP upload server in Ruby for my project. So far, I'm looking at setting up a Rack server to run with "Rainbow!" or a sinatra server with Rack middleware. The server is required to support HTTP uploads with multipart and chunking. Is this a good choice?

I'd love to see some examples how to set up a simple HTTP upload server but I couldn't find anywhere on the 'net.

Upvotes: 0

Views: 388

Answers (1)

poseid
poseid

Reputation: 7156

Since a file upload can take a while, an important point of uploading files in Ruby are blocking processes while a file is uploaded. You might want to look into projects that are based on EventMachine and/or Goliath to achieve non-blocking processing of HTTP requests. Some ideas here:

Upvotes: 1

Related Questions