37
Dear Couchers... -CouchDB in the room- OSC 2009 Tokyo/Fall 15:15 - 16:00

CouchDB in The Room

Embed Size (px)

DESCRIPTION

This is the slide to introduce CouchDB in Open source conffrence 2009 Tokyo fall.

Citation preview

Page 1: CouchDB in The Room

Dear Couchers...-CouchDB in the room-

OSC 2009 Tokyo/Fall15:15 - 16:00

Page 2: CouchDB in The Room

Agenda

1.Basic Relaxation(z.ohnami)2.Social Relaxation(Mr.sasaki)3.CMS Relaxation(Mr.Fujita)

Page 3: CouchDB in The Room

At first,Hot topics !!

Hello !!

Page 4: CouchDB in The Room

0.8.0 (incubating) 0.8.1 (incubating)0.9.0 0.9.1 0.10.0 Beta

Page 5: CouchDB in The Room

Windows installer

http://wiki.apache.org/couchdb/Windows_binary_installer

Page 6: CouchDB in The Room

RainDrop

http://mozillalabs.com/raindrop

Page 7: CouchDB in The Room

Ubuntu One

https://one.ubuntu.com/http://damienkatz.net/pics/ubuntu_couchdb.

png

Page 8: CouchDB in The Room

sponser

CouchDB JP

http://groups.google.co.jp/group/couchdb-jp?hl=ja

Page 9: CouchDB in The Room

Basic RelaxationWhat is CouchDB? by z.ohnami

Page 10: CouchDB in The Room

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.

Page 11: CouchDB in The Room

z.ohnamiz-ohnamiz_ohnami

Page 12: CouchDB in The Room

No1 CouchDB's Basics

Check it !!

Page 13: CouchDB in The Room

We can acces via HTTP method

GET(refer)POST(add)PUT(add/update)DELETE(delete)

Page 14: CouchDB in The Room

Document is map on URI

http://servername:5984/DB name/doc name (example) http://z.ohnami.com:5984/my-memo/good-idea

Page 15: CouchDB in The Room

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 } }

Page 16: CouchDB in The Room

Wrapping upAccess via HTTP

GETPUTPOSTDELETE

Reply as JSON format{ name:"z.ohnami", phone:"555", blood:"AA"}

http://server name:5984/DBname/document name

Page 17: CouchDB in The Room

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 ・・・

Page 18: CouchDB in The Room

No.2 Design Document

(「・ω・)「ガオー

Page 19: CouchDB in The Room

We can change various form using D.D

Page 20: CouchDB in The Room

More details...

Page 21: CouchDB in The Room

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

Page 22: CouchDB in The Room

show&list

showAdjust document format

JSON → HTML Relax!!list

Adjust view's output formatJSON → HTML Relax!!

Data list → detail(list → show)is popular pattern

Page 23: CouchDB in The Room

No3 Replication

Far away

Page 24: CouchDB in The Room

Push and Pull !!

DB1 Document1

Document2・・・

DB2

Document4

Document3

・・・

CouchDB

DB1'

"HTTP://servername:5984/_replicate"

・・・

OtherCouchDB

Document1

Document2

DB2'

・・・

Document3

Document4

Page 25: CouchDB in The Room

No.4 Application Development

Where to use CouchDB?

Page 26: CouchDB in The Room

What kind of data is suitable for CouchDB?

wanna know ?

Page 27: CouchDB in The Room

Document oriented database

CouchDB is .

Page 28: CouchDB in The Room

If you can write down paper,Let's CouchDB!!

Page 29: CouchDB in The Room

Example

paper(specification、order list、profile・・・・)card、Poken should use CouchDBbook's page(photo is available)source codeconfiguration file(like ini File)

Page 30: CouchDB in The Room

How do you set CouchDB ?

like a furniture ?

Page 31: CouchDB in The Room

Off course.

Page 32: CouchDB in The Room

Off course,too

Page 33: CouchDB in The Room

CouchDB covers all layers !!

Page 34: CouchDB in The Room

Fun !!

Page 35: CouchDB in The Room

Wrapping up

sum(Basic Relaxation);

Page 36: CouchDB in The Room

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

Page 37: CouchDB in The Room

Be relaxed !!

Wait the next session ...