最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - CouchApp vs Node.js - Stack Overflow

programmeradmin1浏览0评论

On the frontend Im using Sproutcore.

The question is how the backend is going to look like.

Solutions:

  • CouchApp
  • Node.js between Sproutcore and CouchDB

Could CouchApp really replace Node.js on the backend regarding?

  • Websockets/streaming
  • Asynchronous processing
  • Collection of third party libraries
  • Security
  • Speed

On the frontend Im using Sproutcore.

The question is how the backend is going to look like.

Solutions:

  • CouchApp
  • Node.js between Sproutcore and CouchDB

Could CouchApp really replace Node.js on the backend regarding?

  • Websockets/streaming
  • Asynchronous processing
  • Collection of third party libraries
  • Security
  • Speed
Share Improve this question edited Mar 29, 2011 at 16:13 700 Software 87.9k88 gold badges242 silver badges347 bronze badges asked Nov 30, 2010 at 4:04 ajsieajsie 79.8k110 gold badges284 silver badges386 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

CouchApp is nothing more than an easy way to deploy code to your CouchDB. It doesn't expand it's functionality but let's you use what's given easy way. So it's not CouchApp vs Node.js but rather what doesn't CouchApp have from the list of features you need to build your app.

If you need websockets/streaming go with Node.js middleware. CouchDB doesn't have 'em.

And if you give some details about your project I can try to give more plete answer.

I would remend you watch Mikeal Rogers talk on how CouchApp and Node.js work together. http://jsconf.eu/2010/speaker/nodejs_couchdb_crazy_delicious.html

Keep in mind that a couchapp is, at it's very basic level, simply a file structure within Couchdb (_design) where your js (or other) code resides and is served from. The key benefit is that any code changes in one place will be replicated to all couchdb instances. It makes it a lot easier to maintain widely distributed code.

发布评论

评论列表(0)

  1. 暂无评论