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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Realtime Chat on CouchDB

49 点作者 nexneo大约 16 年前

8 条评论

antirez大约 16 年前
This does not matter. I'm author of another KV store (Redis), but years ago got real-time chat working with MySQL, check this:<p><a href="http://w.ebchat.com/channel/hackernews" rel="nofollow">http://w.ebchat.com/channel/hackernews</a><p>You can do it with MySql, or with <i>files</i> in append mode with "message_id - message", and everything else.<p>I think that KV stores are great, but if you create a false sense of coolness this is going to hurt in the long run. It is important to show people <i>why</i> really new forms of DBs can be useful and important.<p>edit: If the point is instead the fact that the DB talks directly HTTP, the w.ebchat.com chat PHP layer is ridiculous, just a wrapper that takes parameters from the HTTP side and run a query returning back the data. I can only see the HTTP protocol as interface to KV DB as a good way to lost a lot of performances without a reason.
评论 #623942 未加载
评论 #623888 未加载
larrykubin大约 16 年前
It's like everyone is inventing IRC all over again.
评论 #624225 未加载
DougBTX大约 16 年前
I have to say I was expecting more content for a top link.
swombat大约 16 年前
Who exactly is voting this up? C'mon, this isn't news. Would it deserve a #1 HN slot if I got some real-time chat working with Ruby and MySQL? No.
评论 #623858 未加载
评论 #624571 未加载
评论 #623850 未加载
Tichy大约 16 年前
Does this mean CouchDB already supports Comet? That would really excite me. I am not aware of any established Comet frameworks, and custom solutions in Erlang seem to become a common way to go at the problem (because of the cheap threads, useful to listen to all the connections). Since CouchDB is written in Erlang, I was hoping that it would support Comet eventually.<p>Edit: in the chat it was claimed that CouchDB supports COMET. If true, this would be way cool!
axod大约 16 年前
Sorry to anyone who was there when I broke it. I forgot it would do <i>lots</i> of alerts.<p>Apologies :/ I was just playing :(
christofd大约 16 年前
Doesn't guard against sending Javascript: my browser was killed with popups - ANGER!!!
评论 #623851 未加载
评论 #624095 未加载
axod大约 16 年前
Fun :) but using a DB for chat is a really bad idea.
评论 #623869 未加载