Wrapping Up

This chapter covered a lot of ground against the backdrop of working with databases. To start, we created a project directory complete with a package.json file for managing dependencies through npm.

By choosing CouchDB—a RESTful, JSON-based, document-oriented datastore—we got a detailed look at how RESTful APIs work. We used the request module to simplify making HTTP client requests from Node.

Step by step, you created scripts to import large amounts of data into CouchDB with Node. We saw how Node’s extreme speed sometimes works against it, exhausting system resources and overwhelming other services. To fix this, we explored techniques for queuing work using the async module. Along the way you learned how to use nodeunit to develop ...

Get Node.js the Right Way now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.