我在问自己为什么要结合使用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
发布评论