Advantages of CouchDB
Interacting with CouchDB is all about making proper HTTP requests. This will give us the opportunity to talk about HTTP and RESTful practices—information that will be handy in Chapter 6, Scalable Web Services, when we’ll implement our own RESTful web services. And the techniques you’ll use here apply to other RESTful APIs, like those published by Amazon and Google.
As a bonus, CouchDB speaks JavaScript. Whenever you store data in CouchDB, you send it a JavaScript Object Notation (JSON) document. A document is a JSON object with a couple of special attributes that we’ll see shortly. Indexing and querying in CouchDB is done with mapreduce views written in JavaScript, also accessible through REST.
Lastly, npm itself uses ...
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