Friday, December 28, 2007

Erlyweb, Erlang, Comet

Been doing a cursory look at Erlang and Erlyweb for a few mos off and on, keeping track of it via a variety of RSS feeds, articles in the community, toying around with it, etc.

Have come to the interim conclusion at present that I don't think Erlang-based Erlyweb will ever be a replacement for Rails, or Django, etc. Building MVC web apps quickly and robustly for the large chunk of market share will be an area where Java, Rails, PHP, ASP, Django et al dominate. Then most will take the steps to scale up from there if need be.

But it will definitely fill the gap for creating highly available web sites or services. Especially in the realm of Comet (or server side 'push' instead of polling) apps, where data gets instantly pushed to clients when the data is available on the server. Reason being is that Comet requires long lasting connections between the client and server to lazily push out data as that data becomes available… so having 80,000 connections with Erlang is not a big deal. It would be a very big deal with Apache. The other is database connection pooling and fast access to db's

...the Erlyweb/ Erlang sweet spot seems to me to be where multiple connections demonstrate a big performance boost, or boost in ease of implementation. So Comet is a good example b/c you benefit from all those connections. Same with Twitter, or Amazon’s SimpleDB. Also the database pooling examples given in Yariv's presentation is very intriguing. All of those make sense, or where background concurrency gives you a needed architectural boost. But many classes of less complex apps, a large percentage of web applications in fact, you can write those in a shorter time, for E.g., with Rails TDD, and it has no need for the concurrency on the backend that Erlyweb provides via Erlang...

Erlyweb and Erlang seems to be possibly an up and coming 'right tool for the job' when it comes to high availability real time data pushing. Something to keep an eye on.

Here are some links to whet the Erlang appetite of anyone interested... also a couple Comet links:

http://www.bayfp.org/blog/2007/12/25/yariv-sadan-on-erlyweb-video-and-slides/
http://en.wikipedia.org/wiki/Erlang_(programming_language)
http://erlyweb.org/
http://en.wikipedia.org/wiki/Comet_(programming)
http://www.irishdev.com/NewsArticle.aspx?id=2166
http://alex.dojotoolkit.org/?p=545

2 comments:

Anonymous said...

thanks for the writeup.

Ideation Fashion said...

Wonderful sharing such a good post. Thanks for your nice job.
hermes birkin 30