Building and Scaling a Startup on Rails: 12 Things

本文分享了由Posterous联合创始人Garry Tan总结的12条扩展Rails应用的经验教训,不仅适用于Rails开发者,也适用于更广泛的软件开发人员。这些建议包括使用云存储、HTTP缓存控制、Sphinx搜索、InnoDB数据库、New Relic性能监控等技术手段,旨在帮助开发者提升应用程序的性能和稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值