Nodejs and MongoDB, A Beginner's Approach
blog.ksetyadi.com
Nodejs and MongoDB, A Beginner's Approach
1–10 of 34 posts
Re: Nodejs and MongoDB, A Beginner's Approach
#2Re: Nodejs and MongoDB, A Beginner's Approach
#3Mirror: https://gist.github.com/1327266
Re: Nodejs and MongoDB, A Beginner's Approach
#4Re: Nodejs and MongoDB, A Beginner's Approach
#5I'm both Node and MongoDB user and like them, but this can get really messy when there's a chain of callbacks involved, eg when you need a sequence of results but want to do it in a asynchronous fashion.
Re: Nodejs and MongoDB, A Beginner's Approach
#6There are a ton of guides on how to set up a webserver in 20 lines, but hardly any on how to (properly) handle a lot of async callbacks and requests etc.
Re: Nodejs and MongoDB, A Beginner's Approach
#7There's something incredibly natural about node & mongo together.
Re: Nodejs and MongoDB, A Beginner's Approach
#8I'm both Node and MongoDB user and like them, but this can get really messy when there's a chain of callbacks involved, eg when you need a sequence of results but want to do it in a asynchronous fashion.
Is that specific to MongoDB on node, or is that just generally true of node.js code though?
Re: Nodejs and MongoDB, A Beginner's Approach
#9I'm both Node and MongoDB user and like them, but this can get really messy when there's a chain of callbacks involved, eg when you need a sequence of results but want to do it in a asynchronous fashion.
Is that specific to MongoDB on node, or is that just generally true of node.js code though?
Re: Nodejs and MongoDB, A Beginner's Approach
#10Earlier quoted context omitted.
Is that specific to MongoDB on node, or is that just generally true of node.js code though?
It's generally true for Node when you have a lot of chained I/O. You can somewhat avoid it using events (so you set up event listeners instead of just chaining callbacks endlessly). So far I haven't seen any MongoDB module for Node taking advantage of those (haven't looked a lot yet, though).