Seven Lessons on Scalability from RedditPosted: May 17, 2010 7:52 PMAta talk at the Future of Web Apps this year, Steve Huffman, co-founderof Reddit.com, summarized seven lessons learned while building andgrowing the Reddit.com social link and discussion site. The video ishere:
http://vimeo.com/10506751
The slides are here:
http://www.slideshare.net/carsonified/steve-huffman-lessons-learned-while-at-redditcom
And a transcript is here:
http://carsonified.com/blog/dev/steve-huffman-on-lessons-learned-at-reddit/
In brief, the lessons are:
- Crash often - automatically detect problems like excessive memory or cpu consumption or slow response times, and automatically restart the process
- Separate services - put different things in different processes so you can put them on different machines easily
- Open schema - avoid problems upgrading and replicating different database schema versions by always using one schema with two tables, a "thing" table and a "data" table
- Keep the app servers stateless - you can easily add more app servers, cache memory in memcached not the app servers
- Memcache everything - store data in memory to take load off the on-disk data stores
- Store redundant data - store the same data in as many formats as you may need to display
- Work offline - minimize the amount of work needed to generate a response for the user
What are your thoughts on these "lessons learned." Does anything jump out at you as surprising or missing?
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。