cost model for a RoR where users could upload lots of file? what approach?

Hi,

Any ideas/suggestions re what a good cost model / approach would be if
one's Ruby on Rails application was to be successful, but noting users
(as part of the service/application) could upload lots of files
(images etc).

What's a good way of have:
  (a) a simple cost model for use of the site, e.g. free up to X but
costs Y after this per every Z,
  (b) noting files/images etc have to be protected by the rails
authentication / authorization
  (c) makes sure I won't start losing money (e.g. if users have to pay
less than the cost of storage / bandwidth)

Any good ideas/approaches?

Thanks

Greg Hauptmann wrote:

Hi,

Any ideas/suggestions re what a good cost model / approach would be if
one's Ruby on Rails application was to be successful, but noting users
(as part of the service/application) could upload lots of files
(images etc).

What's a good way of have:
  (a) a simple cost model for use of the site, e.g. free up to X but
costs Y after this per every Z,
  (b) noting files/images etc have to be protected by the rails
authentication / authorization
  (c) makes sure I won't start losing money (e.g. if users have to pay
less than the cost of storage / bandwidth)

Any good ideas/approaches?

Thanks

Use an external repository for your images that has unlimited bandwidth
unlimited drivespace and an acceptable uptime that charges a fixed cost
per month.
www.unlimitedwebhosting.co.uk is the what I use for image and doc
hosting.
This approach will massively improve performance of any Rails site that
serves static data and is extremely simple to implement by making use of
asset_host.

Check out this blog
http://ariejan.net/2007/09/24/rails-20-new-features/

so you still use one the well known rails hosts sites for your actual
Rails app then James, but just use www.unlimitedwebhosting.co.uk for
images etc right? then you just use the rails
"config.action_controller.asset_host" concept (which was in the blog)
to handle users browsers picking up images directly from
www.unlimitedwebhosting.co.uk?

Jruby has native multi-threading which could possibly give you better
scalability for concurrent uploads as well, worth looking at.