按年被提到
20102010 · 4 次2026
开源书›数据库·No.88

CouchDB: The Definitive Guide

CouchDB 权威指南
J. Chris Anderson, Jan Lehnardt, Noah Slater

从 HTTP 接口、视图到复制与变更通知,讲透 CouchDB

免费阅读 ↗
被推荐 · 26 人首次 2010-08-23 · 最近 2026-08-29许可证 CC BY 3.0
26不同的人
27活跃月份
5有推荐的月份
29讨论串

O'Reilly 出版的 CouchDB 官方风格指南,作者免费放出在线版,采用 CC-BY-3.0 许可。书从 CouchDB 的 RESTful HTTP 接口讲起,用 curl 一步步演示文档、视图、map/reduce、验证函数、变更通知和复制等核心概念,并涉及内部的 B-tree 存储设计。和泛泛介绍 NoSQL 的书相比,它紧扣一个具体系统,动手例子多。出版时间较早,示例里的版本号已经偏旧。

HN 为什么推荐它

HN 上的人常把它当作 CouchDB 的标准参考:解释 changes API、过滤函数、验证函数、append-only B-tree 和复制时都会引它,也有人称它是入门 CouchDB 和 NoSQL 的好书;批评只有一条,在线版里示例的版本号太旧。

难度 3 / 5约 15 小时开放许可
适合谁

想了解文档型数据库和 CouchDB 的开发者

读之前最好知道
1HTTP 与 REST 基础
2JavaScript
3JSON

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读开头的介绍和上手部分,用 curl 把文档的增删改查跑一遍
  2. 2接着读设计文档、视图和 map/reduce,这是 CouchDB 与其他数据库最不同的地方
  3. 3复制、变更通知和验证函数按需读,做离线同步类应用时最有用
  4. 4示例版本较旧,对照当前官方文档,遇到命令对不上时以官方文档为准

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
推荐arethuza · 2011-01

“CouchDB has a changes API that can send notifications to a client of what has changed - you can restrict this to changes you are interested in by using filter functions, which are a bit like views. See: CouchDB”

推荐它讲 changes API 和 filter functions,用来只接收关心的变更
List of NOSQL database原评论 ↗
推荐arethuza · 2011-08

“I started working through the examples using curl in the CouchDB - The Definitive Guide and then moved on to building code to interface with it:”

推荐它里面用 curl 演示 RESTful 接口的例子,学完再写代码对接
Parse Releases Their REST API原评论 ↗
推荐unkown-unknowns · 2017-10

“I found the book CouchDB: The Definitive Guide to be a good introduction when I first read it some years ago.”

推荐它,当年读来是不错的 CouchDB 入门
Ask HN: Learning NoSQL, papers and books原评论 ↗
推荐adamwiggins · 2019-11

“the CouchDB book[1] was an early inspiration in my exploration of next-gen storage and collab models.”

称它是自己探索下一代存储与协作模型的早期灵感
Local-first software: you own your data, in spite of the cloud原评论 ↗
推荐aboodman · 2020-04

“persistent (for both senses of the word) b-trees are used extensively in couchdb. You can read about their design here:”

推荐它了解 CouchDB 大量使用的 persistent B-tree 的设计
Let’s Invent B(+)-Trees原评论 ↗
批评eriknstr · 2016-09

“Looking at the online draft version of the book, the tour chapter [0] still has version 0.10.1 in the example.”

批评在线草稿的 tour 章节示例仍停留在 0.10.1 版本
CouchDB 2.0原评论 ↗
看全部 20 条 →
引用Avshalom · 2010-09

“CouchDB is a breakdown of the source tree and explains things.”

引用它来讲解 CouchDB 源码树的结构
First Impressions of Sitting a Web App on CouchDB原评论 ↗
引用simplify · 2010-09

“it's possible to write a write-controlled app using validation functions[1].”

拿 CouchDB 的 validation functions 说明可以写出写入受控的应用
First Impressions of Sitting a Web App on CouchDB原评论 ↗
引用jchrisa · 2010-11

“There is a server-side JavaScript validation function which can reject updates for being malformed or if the user isn't allowed to proceed:”

引用 CouchDB 服务端 JavaScript 校验函数,可拒绝格式错误或无权限的更新
What the HTTP is CouchApp?原评论 ↗
引用daleharvey · 2011-03

“Its another database engine that you can use to locally persist data, the main upside is that the data you locally persist can be synced online with CouchDB's replication.”

拿 CouchDB 说明本地持久化的数据可通过它的 replication 在线同步
Developer Preview of Couchbase Mobile - Apache CouchDB for iOS devices原评论 ↗
引用rdtsc · 2011-11

“CouchDB has an append-only BTRee so it doesn't need journalling:”

引用它说明 CouchDB 用 append-only B-tree,因此不需要 journalling
What happened to CouchDB's popularity?原评论 ↗
引用stdbrouw · 2012-03

“like the way it handles push notifications (see CouchDB), design documents, couch apps, map/reduce and so on.”

引用它讲 CouchDB 的推送通知,并称赞其设计文档、couch apps、map/reduce
Parse 1.0 is released原评论 ↗
引用alexpopescu · 2013-07

“- CouchDB: CouchDB”

把它列为 CouchDB 的参考资料
RethinkDB 1.7: hot backup, atomic set/get, 10x insert performance improvement原评论 ↗
引用toomuchtodo · 2013-08

“It took me 15 minutes to learn and understand what they are and how they work.”

说明自己十五分钟就学会并理解了其中讲的概念
I will not do a tech interview原评论 ↗
引用j_s · 2013-11

“CouchDB supports undo as part of their core storage model. CouchDB”

引用它说明 CouchDB 的核心存储模型支持 undo
引用thezorg · 2014-04

“CouchDB B-Trees: CouchDB”

引用它讲 CouchDB 的 B-tree
Btrees are the new black原评论 ↗
引用ollysb · 2014-04

“Couchdb lets you listen to changes[1], if you want to do anything in addition to the basic CRUD you can do it there.”

引用它说明 CouchDB 可监听 changes,在基本 CRUD 之外做扩展
Don't design your own REST back end原评论 ↗
引用h1karu · 2014-04

“Here's an example that explains how to get transaction-like guarantees from this kind of NoSQL data-store:”

引用它的例子,说明这类 NoSQL 存储如何获得类事务保证
What's left of NoSQL?原评论 ↗
引用derefr · 2016-01

“Now if you could only get your database to speak HTTP and serve HTML directly... oh, wait: CouchDB:)”

调侃数据库直接说 HTTP 并提供 HTML,指向 CouchDB
The Website Obesity Crisis原评论 ↗
引用im_down_w_otp · 2016-08

“Having now looked at it out of curiousity... CouchDB”

出于好奇看了一下这本书,并附上链接
Show HN: Noms – A new decentralized database based on ideas from Git原评论 ↗