TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Nodule: A Node.js Pub-Sub Key-Value Store in 185 Lines

42 点作者 lonestar大约 15 年前

5 条评论

jashkenas大约 15 年前
Just for kicks, here's what the straight port of Nodule.js looks like in CoffeeScript.<p><a href="http://gist.github.com/364845" rel="nofollow">http://gist.github.com/364845</a><p>A little clearer, about 25% shorter, pretty fun.
评论 #1263409 未加载
BrianHammond大约 15 年前
Nice, good to see more people coming to Node.js. These things are like the modern "Hello, World!".<p>Here's one I hacked up in 10 minutes. It's 40 LOC. <a href="http://gist.github.com/366590" rel="nofollow">http://gist.github.com/366590</a><p>The big problem with this is that it's just one server. I'm working on something called "NodeRed" (har har) that lets one scale out the frontend using Redis for communication. It's generic enough to do PUBSUB, chat, games, etc.<p>Here's an overview. <a href="http://fictorial.com/NodeRed.png" rel="nofollow">http://fictorial.com/NodeRed.png</a><p>I developed the/a Node.js client for Redis if you care to dive into this stuff: <a href="http://github.com/fictorial/redis-node-client" rel="nofollow">http://github.com/fictorial/redis-node-client</a>
评论 #1267068 未加载
juvenn大约 15 年前
Redis has Pub/Sub support as well: <a href="http://code.google.com/p/redis/wiki/PublishSubscribe" rel="nofollow">http://code.google.com/p/redis/wiki/PublishSubscribe</a><p>And I think their APIs (<i>limited to pub/sub</i>) are very alike, kinda cool!
zackham大约 15 年前
I'm working to accomplish something similar with Redis's pub/sub and Rosepad Socket.IO for handling persisting the client connection. If anyone has ideas questions or suggestions related to this strategy or these technologies I'd love to talk, email is in my profile.
评论 #1266591 未加载
exit大约 15 年前
i'm pretty clueless - what are some examples this could be deployed for?
评论 #1263127 未加载