> Thin can receive and parse the request asynchronously and concurrently. But once it reaches the Rack app inside, it is the job of the app to handle things in an asynchronous maner to be able to handle concurrency.
> So while the file is uploading to your server it will be able to handle other requests. But if you app takes a long time to process that app (in Ruby code) you will block other requests during that time.
> On Sun, Apr 1, 2012 at 10:26 AM, John Bachir <johnjosephbac...@gmail.com> wrote:
> I have a single-threaded Rails app running on thin in single-threaded mode on Heroku Cedar.
> While I do a huge POST request (a file upload) that takes more than a minute, I can do other GET requests at the same time.
> Heroku support assures me that their routing layer is not storing the request and then sending it all at once (which is the behavior of many proxies, such as nginx). They insist that my app is handling concurrent requests.
> I posted this question on Stack Overflow [1] and someone proposed this:
> Thin is built on top of EventMachine, which provides event-based IO.
> So, I suspect, Thin does async receiving of your POST request, while serving GET requests in the meanwhile. When POST data is uploaded, Thin then goes on to pass it to Rails.
> Is that the case?
> Thanks,
> John
> [1] http://stackoverflow.com/questions/9962611/how-is-my-single-threaded-...
> --
> You received this message because you are subscribed to the Google Groups "thin-ruby" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/thin-ruby/-/gH8b4MPATI8J.
> To post to this group, send email to thin-ruby@googlegroups.com.
> To unsubscribe from this group, send email to thin-ruby+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thin-ruby?hl=en.
> --
> M-A
> http://macournoyer.com
> --
> You received this message because you are subscribed to the Google Groups "thin-ruby" group.
> To post to this group, send email to thin-ruby@googlegroups.com.
> To unsubscribe from this group, send email to thin-ruby+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thin-ruby?hl=en.