A Journey Into the Emotions of Software Developers
HTTP API for Free? Check out CouchDB
1. HTTP API for Free?
Check out CouchDB
Nils Breunese, VPRO
N.Breunese@vpro.nl
@breun
2. HTTP API
HTTP is simple
Every OS and programming language supports HTTP
Lots of tooling available: proxying, caching, monitoring, etc.
“Cool! So, how do I get one for my data?”
6. CAP Theorem
Consistency: all nodes see the same data at the same time
Availability: node failures do not prevent survivors from
continuing to operate
Partition tolerance: the system continues to operate despite
arbitrary message loss
Choose any two; you can’t have all three
13. Performance
Append-only B-trees (crash proof)
Views are pre-calculated indexes
Incremental map/reduce
Trade disk space for performance
Very low RAM usage
15. Using the API
Client-side: AJAX from browser (JSONP support in CouchDB)
Invisible for search engines
Server-side
You can use a library like jcouchdb
Indexable!
16. Formatting Data
Show function: transform a document into...
SVG, HTML, MP3, etc.
List function: transform a view result
RSS, etc.