why couchdb? · couchapps live inside couchdb get replicated with data includes map/reduce views as...
TRANSCRIPT
![Page 1: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/1.jpg)
Why CouchDB?the above type is not rendered in comic sans...
Data DataChalkboard Comic Sans MS
see...
![Page 2: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/2.jpg)
Lonely Data
data access depends on (often API-less) app (esp. desktop)
web apps are a little better, but not always
not general meant for replication/backup
app may be open source, but data’s still tangled up (RDBMS)
![Page 3: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/3.jpg)
Enter...
![Page 4: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/4.jpg)
JSON Documents
Your programming language supports JSON!Adapt data as your application changes.
{“json”: “key/value pairs”, “_id” : “some uuid”, “_rev”: “mvcc key”, “string keys”:
[1,2,3,”four”,null], “schema free”: “flexible”}
![Page 5: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/5.jpg)
HTTP / RESTyou already know the API
GET read
PUT create or update
DELETE delete
POST bulk operation
![Page 6: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/6.jpg)
Peer-Based Replication for Freedomtriggered, incremental, filtered (soon)
![Page 7: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/7.jpg)
Portable Standalone Appsreplicate-able apps
CouchApps live inside CouchDB
Get replicated with data
Includes map/reduce views as well as...
_show - output rendering
_list - incremental index/list output
_update - document validation
.js, .css, .png attachments for the UI
![Page 8: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/8.jpg)
Let’s Replicate......EVERYTHING!!1!
Take full advantage of CouchDB
The Future is Distributed
not just data, but...
queries
output formats
attachments
whole applications
and everything else in between
![Page 9: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/9.jpg)
Imagine these as CouchApps
OpenLibrary.org
contribute & get updates periodically
add your book while on the plane, publish it when you get off
Subject Guides
more ad-hoc content (thanks to schema-less-ness)
more contributors (give’m their own CouchDB)
![Page 10: Why CouchDB? · CouchApps live inside CouchDB Get replicated with data Includes map/reduce views as well as... _show - output rendering _list - incremental index/list output _update](https://reader036.vdocuments.mx/reader036/viewer/2022070112/60551158658ef0796472c81b/html5/thumbnails/10.jpg)
CouchDB does replication
you get to dothe other stuff
thanks
also: check out hosting.couch.io for a free Couch