Node.js + CouchDB与CouchDB

编程入门 行业动态 更新时间:2024-10-11 09:27:48
本文介绍了Node.js + CouchDB与CouchDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在问自己为什么要结合使用Node.js + CouchDB和CouchDB独立方法。将Node.js引入游戏的好处是什么?欢迎任何评论/经验。

I'm questioning myself why should I use combination of Node.js + CouchDB versus CouchDB standalone approach. What are the benefits of getting Node.js into the game? Any comments/experiences are welcome.

推荐答案

Node可以做什么而CouchDB不能

Node.js可以使用unix套接字进行进程间通信,实时上传文件,它可以启动websocket服务器甚至SPDY服务器。 您可以创建一个DNS服务器,甚至可以处理一些地理定位工作(MaxMind db)。

Node.js can do inter-process communication using unix sockets, real time file uploads, it can start a websocket server or even a SPDY server. You can create a DNS server or even handle some geo targeting stuff (MaxMind db).

CouchDB可以做的很好的工作

但是,即使CouchDB很难实现,也可以做很多有趣的事情。例如,使用_changes功能,您可以进行进程间通信,即实时聊天系统(长轮询)。

However there are a lot of interesting things you can do with CouchDB, even if they would be a little more difficult to achieve. For example using the _changes feature you could do inter-process communication, a real-time chat system (long-polling).

我不是专家(但CouchDB是我的学习列表中的最高优先级),但我想您还可以为登录用户模拟会话。

I'm no expert (but CouchDB is top priority on my to-learn list), but I guess you could also simulate sessions for logged in users.

CouchDB很棒,Node.js也是如此。重要的是您打算开发什么应用程序,用例是什么。

CouchDB is amazing and so is Node.js, so the important thing is what application are you planning to develop, what's your use case.

更多推荐

Node.js + CouchDB与CouchDB

本文发布于:2023-10-30 04:40:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1541797.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Node   js   CouchDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!