Upload
makoto-ohnami
View
1.855
Download
2
Embed Size (px)
DESCRIPTION
This is the slide to introduce CouchDB in Open source conffrence 2009 Tokyo fall.
Citation preview
Dear Couchers...-CouchDB in the room-
OSC 2009 Tokyo/Fall15:15 - 16:00
Agenda
1.Basic Relaxation(z.ohnami)2.Social Relaxation(Mr.sasaki)3.CMS Relaxation(Mr.Fujita)
At first,Hot topics !!
Hello !!
0.8.0 (incubating) 0.8.1 (incubating)0.9.0 0.9.1 0.10.0 Beta
Windows installer
http://wiki.apache.org/couchdb/Windows_binary_installer
RainDrop
http://mozillalabs.com/raindrop
Ubuntu One
https://one.ubuntu.com/http://damienkatz.net/pics/ubuntu_couchdb.
png
sponser
CouchDB JP
http://groups.google.co.jp/group/couchdb-jp?hl=ja
Basic RelaxationWhat is CouchDB? by z.ohnami
Who am I?It calls 'zetto ohnami'I'd worked at mainframe env(z/OS)
DBAz/OS,DB2
current jobDB Development consultant Building Virtulization env
CouchDB guy I wrote the article at "@IT"
No.1,No.2 is released.http://www.atmarkit.co.jp/fdb/rensai/09_couchdb/01/couchdb01.htmlhttp://www.atmarkit.co.jp/fdb/rensai/09_couchdb/02/couchdb01.html
I'm enjoyning android programming,too.
z.ohnamiz-ohnamiz_ohnami
No1 CouchDB's Basics
Check it !!
We can acces via HTTP method
GET(refer)POST(add)PUT(add/update)DELETE(delete)
Document is map on URI
http://servername:5984/DB name/doc name (example) http://z.ohnami.com:5984/my-memo/good-idea
We treat data as JSON{ "_id":"good-idea", "title":"how to be relax day off", "date":"2009-10-31", "descripiton":"yeah,Let's go to OSC", "equipment":["laptop","card","Poken"], "status":{ "guts":3, "thru":40, "heart beat":80 } }
Wrapping upAccess via HTTP
GETPUTPOSTDELETE
Reply as JSON format{ name:"z.ohnami", phone:"555", blood:"AA"}
http://server name:5984/DBname/document name
The structure of CouchDB
DB1 Document1
Document2・・・
DB2 Document3
Document4・・・
CouchDB
・・・
"HTTP://servername:5984/DB name/document name"
http://xxx.net:5984/DB1/document1http://xxx.net:5984/DB2/document3 ・・・
No.2 Design Document
(「・ω・)「ガオー
We can change various form using D.D
More details...
Let's use view !!
change the key of document Document's default key is "_id" Add parameters getting view results.
.../_design/d01/_view/gin-by-proof?key=30'
.../_design/d01/_view/gin-by-proof?startkey=20&endkey=60'
.../_design/d01/_view/gin-by-proof?descending=true'
.../_design/d01/_view/gin-by-proof?descending=true&limit=10'Map & Reduce
Each document is applied map function.Data summary is easy,if we use reduce
show&list
showAdjust document format
JSON → HTML Relax!!list
Adjust view's output formatJSON → HTML Relax!!
Data list → detail(list → show)is popular pattern
No3 Replication
Far away
Push and Pull !!
DB1 Document1
Document2・・・
DB2
Document4
Document3
・・・
CouchDB
DB1'
"HTTP://servername:5984/_replicate"
・・・
OtherCouchDB
Document1
Document2
DB2'
・・・
Document3
Document4
No.4 Application Development
Where to use CouchDB?
What kind of data is suitable for CouchDB?
wanna know ?
Document oriented database
CouchDB is .
If you can write down paper,Let's CouchDB!!
Example
paper(specification、order list、profile・・・・)card、Poken should use CouchDBbook's page(photo is available)source codeconfiguration file(like ini File)
How do you set CouchDB ?
like a furniture ?
Off course.
Off course,too
CouchDB covers all layers !!
Fun !!
Wrapping up
sum(Basic Relaxation);
Let's use CouchDB!!
put the data toward CouchDB with relax !!Most suitable data is paper data
Enjoy Design Document & replicationCouchDB is flexible to design system archtecutre
Be relaxed !!
Wait the next session ...