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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access