42
CouchDB Apache Velocity

CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson [email protected] / @jchris Apache CouchDB Committer

  • Upload
    hoangtu

  • View
    230

  • Download
    4

Embed Size (px)

Citation preview

Page 1: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

CouchDBApache

Velocity

Page 2: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

HelloChris Anderson

[email protected] / @jchris

Apache CouchDB Committer

Page 3: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Relax

Page 4: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

RobustJSON/HTTPMap ReduceReplication

Page 5: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Storage Engine

http://www.longnow.org/projects/clock/orrery/

Append-Only ConsistencyReliable & Concurrent

Hot Backups

Page 6: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

http://www.longnow.org/projects/clock/

Storage Engine

Page 7: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

{ "_id": "BC4ea69ce1a73aa7d21d23b608d221d0", "_rev": "1-967a00dff5e02add41819138abb3284d",

"type": "person", "name": "Darth Vader", "age": 63, "headware": ["Helmet", "Sombrero"], "dark_side": true}

JSON Documents

Page 8: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

{ "_id": "BC4ea69ce1a73aa7d21d23b608d221d0", "_rev": "1-967a00dff5e02add41819138abb3284d",

"type": "person", "name": "Darth Vader", "age": 63, "headware": ["Helmet", "Sombrero"], "dark_side": true}

JSON Documents

Page 9: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

{ "_id": "BC4ea69ce1a73aa7d21d23b608d221d0", "_rev": "2-41819138abb32967a00dff5e02add84d",

"type": "person", "name": "Darth Vader", "age": 63, "headware": ["Helmet", "Sombrero"], "dark_side": “More CoWbell!”}

JSON Documents

Page 10: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

http://www.flickr.com/photos/calliope/3573471166

restful httpEveryone knows the API15 years of HTTP toolsTalk directly to the browser

Page 11: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 13: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

IncrementalMap Reduce

Online/realtime, not batch

Page 14: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Replication

Page 15: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

curl -X POSThttp://127.0.0.1:5984/_replicate

-d '{"source":"http://couch.example.com:5984/remote-db",

"target":"local-db"

}'

Page 16: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

curl -X POSThttp://127.0.0.1:5984/_replicate

-d '{"source":"http://couch.example.com:5984/remote-db",

"target":"local-db"

}'

Page 17: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 18: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 19: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 20: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 21: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 22: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 23: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 24: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

http://www.flickr.com/photos/mcpig/872293700/

“Ground Computing”@jhuggins

Page 25: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Local is Faster

Page 26: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Local is Reliable

Page 27: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

http://www.flickr.com/photos/shane-h/280084650

Offline by Default

Page 28: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

CouchAppsPortable

Page 29: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

documents

Applications

are

Page 30: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 31: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 32: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 33: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 34: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 35: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 36: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer
Page 37: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

! !

Stuart Langridge - Canonical

Page 38: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

CouchApps

Page 39: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

SimpleDB

CouchDB

Page 40: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Gives Control to Users

CC-BY-SA http://www.flickr.com/photos/kelleys/492253912/

Page 41: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Local Web Platform

Page 42: CouchDB - assets.en.oreilly.comassets.en.oreilly.com/1/event/42/CouchDB from 10,000 ft... · Hello Chris Anderson jchris@apache.org / @jchris Apache CouchDB Committer

Thanks!