3 ms·
I think you're right. Many people are treating Node.js like Tornado (http://www.tornadoweb.org/ http://www.tornadoweb.org/) and that's not really its intended
by jordanmessina 16y ago
I think you're right. Many people are treating Node.js like Tornado (http://www.tornadoweb.org/ http://www.tornadoweb.org/) and that's not really its intended purpose. It's hard to make requests in a webapp completely async anyway. As soon as you get database transactions involved you're screwed. I fear that too many people hear "it scales" and just jump on board without really understanding the context in which someone makes the claim.
- sausagefeet 16y ago> As soon as you get database transactions involved you're screwed This isn't true. If your DB has an async API, just wrap that up, otherwise you're limited to pushing queries to a query-thread-pool to keep the rest of your app async or implement your DB's protocol in whatever framework you're using. Twisted has native DB drivers + the ability to push to a thread pool if you're dealing with a legacy API.
- jordanmessina 16y agoI had second thoughts about saying that as soon as I hit reply. You're completely right. I should have said things get harder, and if you don't understand what you're doing to start then you're screwed and you don't even know it.
- sausagefeet 16y agoThis is why you should just use Erlang :)
- wladimir 16y agoIf not for the ackward syntax, I'd be using it :) At least to me, Erlang sounds awesome feature-wise, and have glanced over it many times, but every time I see an actual program I decide to just go with Python anyway.
- aaronblohowiak 16y agoMaybe you should check out http://reia-lang.org/ http://reia-lang.org/ which is rubyish/pythonic syntax on the erlang vm
- wladimir 16y agoLooks very slick. Thanks!
- sausagefeet 16y agoI see this complaint come up a lot, it saddens me. Like any language the syntax has some warts but I don't see it being much of any worse than Python or Ruby or any others. One thing Erlang has going for it is the syntax is very small relative to many other languages.