0% found this document useful (0 votes)
51 views

Why Couchdb?: Data Data

CouchDB allows for flexible JSON documents and HTTP/REST APIs. Documents can be replicated across devices for access anywhere and applications can be packaged with the data for full replication. This model enables distributed applications where not just data but queries, outputs, and entire applications can be replicated for accessibility from any device.

Uploaded by

bigbluehat
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

Why Couchdb?: Data Data

CouchDB allows for flexible JSON documents and HTTP/REST APIs. Documents can be replicated across devices for access anywhere and applications can be packaged with the data for full replication. This model enables distributed applications where not just data but queries, outputs, and entire applications can be replicated for accessibility from any device.

Uploaded by

bigbluehat
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Why CouchDB?

the above type is not rendered in comic sans...

see...
Chalkboard Comic Sans MS
Data Data
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)
Enter...
JSON Documents
{“json”: “key/value pairs”,
“_id” : “some uuid”,
“_rev”: “mvcc key”,
“string keys”:
[1,2,3,”four”,null],
“schema free”: “flexible”}

Your programming language supports JSON!


Adapt data as your application changes.
HTTP / REST
you already know the API

GET read

PUT create or update

DELETE delete

POST bulk operation


Peer-Based Replication for Freedom
triggered, incremental, filtered (soon)
Portable Standalone Apps
replicate-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
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


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)


CouchDB does replication

you get to do
the other stuff

thanks

also: check out hosting.couch.io for a free Couch

You might also like