TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using node.js, backbone.js, socket.io, and redis to make a real time chat app

97 pointsby glesperanceabout 14 years ago

11 comments

mellery451about 14 years ago
<i>&#62; Yes, you read correctly. JavaScript on the server. Weird huh? That’s what I thought.</i><p>Really? It wasn't so odd back in 1996 when the Netscape web server supported it. To be sure, V8 and node have wildly better performance characteristics..but the <i>idea</i> of js on the server isn't exactly new: <a href="http://en.wikipedia.org/wiki/Server-side_JavaScript" rel="nofollow">http://en.wikipedia.org/wiki/Server-side_JavaScript</a>.
simplifyabout 14 years ago
For those interested, I made a simple multiplayer Facebook card game[1] for a client using the same technologies, plus Redis and CouchDB.<p>The source is unobfuscated, so you can check it out if you want.<p>[1] <a href="http://apps.facebook.com/alloutcricket/" rel="nofollow">http://apps.facebook.com/alloutcricket/</a>
评论 #2307509 未加载
alanhabout 14 years ago
&#62; <i>If you haven’t been reading about backbone.js, you might want to start (heh, see what I did there?).</i><p>Er, no, actually. Quick, someone sharper than I help me out!
评论 #2307488 未加载
评论 #2307615 未加载
评论 #2306913 未加载
ladon86about 14 years ago
I think this is fast becoming a stack of sorts - I just used it on an app and it scaled to 400 concurrent users beautifully.
评论 #2308612 未加载
antirezabout 14 years ago
Chat app could easily kill a server just a few years ago, at least using the "default" technology available for the mass. Now there are many solutions to write a scalable chat application. This is definitely a good point :)
jschrfabout 14 years ago
I like the idea of transport transparency on the client, yet very much unlike the idea of writing JavaScript on the server.<p>I've never tried node.js but I'm very curious to know what it offers that, say, Twisted or .NET or any other framework with proper IO facilities doesn't.
krmmalikabout 14 years ago
I know its on Github, but a hosted demo would've been nice. I finally understood what backbone.js is. Seen posts all over HN not knowing what it is. Guess i had to understand what MVC is first(!) . Can you tell im new to programming? ;-)
评论 #2307007 未加载
waratumanabout 14 years ago
ah, another chat program on node.js
评论 #2307218 未加载
评论 #2308557 未加载
david927about 14 years ago
Quick survey: if you could have the equivalent of this stack, with persistence, as a service, would that be interesting to you?<p>It would be RESTful relational database-as-a-service but where any individual item could show updates in real time. (E.g. real-time chat would just be a Javascript component.)
评论 #2309032 未加载
评论 #2309034 未加载
DevX101about 14 years ago
I've been looking for something like this! Can't wait to get started and fire up my chat server. Thanks!
mkrecnyabout 14 years ago
I made a real-time chat app at a hackathon using this stack - minus backbone:<p><a href="http://www.hubabl.com" rel="nofollow">http://www.hubabl.com</a>