【link】There is a world outside of Ruby on Rails
SlideAware 的 Didier Prophete 在他的 Blog 中讲述了他从 Ruby on Rails 迁移到 Erlang 的过程之中,他的体会。
SlideAware 是一个分享 powerpoint 的标准 web2.0 网站。这个网站起初用 python 搭建,后来换成 ror 的,在遇到性能问题之后,最近迁移到 Erlang 的方案中来,看来他对此次迁移的效果非常满意。
文章从“数据库支持”,“开发环境/调试器”,“社区”这三个方面讲述了 Erlang 的特性,为 RoRer 们进行了一次“迁移示范”。此外 Erlang 还使得以 push 为基础的 realtime interactive 只需要较少的代价就能实现。
…This means we have to handle a lot of tiny requests/responses. This would be almost suicidal in any other language (or you would need to start adding plenty of servers to support any decent number of users). But not quite so in Erlang since the language was designed for this type of workload… It just scales beautifully (and yes, we still need to add extra servers as well to handle a large load, but just not as many…)…
原文链接在这里。
BTW. Didier Prophete 文中提到他们 realtime interactive 的实现方式:
…Look at our latest code push for instance. We just introduced the ability to have live review sessions for PowerPoint slides. You basically see other people currently reviewing the same presentation, you can leave real time notes and also have to ability to send quick IM messages. Think about what really happens in the background for a second. Because all of this is real time, every user is constantly going to the server asking “is there any new note/IM message to display” ? Now, we decided to go with a simple polling approach (== no Comet)…
呵呵,和我在上一篇文章中提到的 google way 如出一辙。
看来,英雄的所见,总是略同地。


Write a Comment