5 Tips to Scale Your Ruby on Rails Application
1) Cache, cache, cache and more cache.
Cache at the client, Ajax, gateway, reverse proxy, expiration, etags, built-in page, fragment caching, Use memcache to cache results
2) Segregate data and data serving
Datasets that are independent should go into separate databases
Serve static assets from a separate tier, or use Amazon S3 or a CDN like Akamai to serve those assets.
Maybe you can get away with a simpler key-value data store for some of your simpler data. There are ruby clients, so use Hadoop for scaling the storage and analysis of large amounts of unstructured data
If you have heavy data reporting needs, do your reporting from a copy of your main database, not from your production database!
沒有留言:
張貼留言