Garry Tan, cofounder of Posterous, lists 12 lessons for scaling that apply to more than just Rails.
Use cloud storage for static files.
Use HTTP Cache Control to tell the browser what it can cache.
Use Sphinx for text search.
Use InnoDB for more crash resistant and faster writes.
Don't use textbook Rails ActiveRecord objects. Use New Relic to find exactly what is slow in your system.
Use memcache later so you find your database bottlenecks now.
Use mongrel proctitle to find your slow queries. You are only as fast as your slowest queries.
Use asynchronous job queuing to do work in parallel.
Use monitoring so you'll know when your site went down and why.
Learn by reading the source code, fixing problems, and submitting them back to the community.
Use new plugins. Old plugins can't be trusted.
Use new information. Old information can't be trusted.
Use HTTP Cache Control to tell the browser what it can cache.
Use Sphinx for text search.
Use InnoDB for more crash resistant and faster writes.
Don't use textbook Rails ActiveRecord objects. Use New Relic to find exactly what is slow in your system.
Use memcache later so you find your database bottlenecks now.
Use mongrel proctitle to find your slow queries. You are only as fast as your slowest queries.
Use asynchronous job queuing to do work in parallel.
Use monitoring so you'll know when your site went down and why.
Learn by reading the source code, fixing problems, and submitting them back to the community.
Use new plugins. Old plugins can't be trusted.
Use new information. Old information can't be trusted.
本文分享了由Posterous联合创始人Garry Tan总结的12条扩展Rails应用的经验教训,不仅适用于Rails开发者,也适用于更广泛的软件开发人员。这些建议包括使用云存储、HTTP缓存控制、Sphinx搜索、InnoDB数据库、New Relic性能监控等技术手段,旨在帮助开发者提升应用程序的性能和稳定性。
2485

被折叠的 条评论
为什么被折叠?



