0

I'm not sure if this question suits SO but I've been testing out Carrierwave & tweaking it a little. I've noticed that when uploading a file to s3 using fog (this are small files, by the way..), my Rails app comes to a 'stand still' until the upload finishes processing.


I'm going to move all the processing to the background later on but this has me wondering:

Is it only like this in development?

Any overall suggestions?

goo
  • 2,230
  • 4
  • 32
  • 53

2 Answers2

1

Please see Best Ruby on Rails Architecture for Image Heavy App, et al. My answer there is specifically about Heroku, but Heroku's merely a worst-case-scenario due to their many-small-servers architecture.

Community
  • 1
  • 1
Taavo
  • 2,406
  • 1
  • 17
  • 17
0

I have similar issues when using the default webrick, but when uploading in production with apache and passenger, I do not have these issues. You might try switching to thin in your development environment to see if that yields better results.

kobaltz
  • 6,980
  • 1
  • 35
  • 52