• Share
  • Email
  • Embed
  • Like
  • Private Content
CouchConf-Berlin-Developing-with-Couchbase-Server
 

CouchConf-Berlin-Developing-with-Couchbase-Server

on

  • 841 views

 

Statistics

Views

Total Views
841
Views on SlideShare
841
Embed Views
0

Actions

Likes
0
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

CouchConf-Berlin-Developing-with-Couchbase-Server CouchConf-Berlin-Developing-with-Couchbase-Server Presentation Transcript

  • Developing with Couchbase Server 1
  • 2
  • Easy to Easy to Get(Building on) Open 2
  • LANGUAGE 3
  • LANGUAGERuby, Java, PHP, C#, Python, 3
  • LANGUAGERuby, Java, PHP, C#, Python, More soon! 3
  • SUPPORT ALL COUCHBASE 4
  • SUPPORT ALL COUCHBASE get, set, add, replace, 4
  • SUPPORT ALL COUCHBASE get, set, add, replace, touch, gat, getl, sync 4
  • SUPPORT ALL COUCHBASE get, set, add, replace, touch, gat, getl, sync views 4
  • BEST PRACTICES ARE BUILT 5
  • BEST PRACTICES ARE BUILT Data Access Patterns 5
  • BEST PRACTICES ARE BUILT Data Access Patterns Pagination 5
  • BEST PRACTICES ARE BUILT Data Access Patterns PaginationAccess to Development and Production 5
  • THE SERVER 6
  • THE SERVER(BUCKETS AND VIEWS) 6
  • THE DATA 7
  • THE DATA(PRESIDENTS AND U.S. 7
  • THE VIEWS 8
  • THE VIEWS(PRESIDENT_NAMES, BY_STATE, PRESIDENT_EVENTS) 8
  • QUICK RUBY 9
  • QUICK RUBY(COUCHBASE GEM IN 9
  • 10
  • require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL) 10
  • require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL)design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’,‘by_state’] 10
  • require couchbaserequire uuidDEFAULT_BUCKET_URL = http://localhost:8091/pools/defaultcouchbase = Couchbase.new(DEFAULT_BUCKET_URL)design_doc = couchbase.design_docs[‘design_doc’]design_doc.views[‘president_names’, ‘president_events’, ‘by_party’,‘by_state’]design_doc.president_names(:reduce => false).each { |doc| puts "#{doc[key]}: #{doc[value]}"} 10
  • CONNECTING TO THEimport net.spy.memcached.CouchbaseClientimport net.spy.memcached.protocol.couch.Queryimport java.util.LinkedListSERVER_URI = "http://127.0.0.1:8091/pools"uris = new LinkedList()uris.add(URI.create(SERVER_URI))couchbase = new CouchbaseClient(uris,"default", "") 11
  • Aquery = new Query()query.setReduce(false)view = couchbase.getView("design_doc","president_names")future = couchbase.asyncQuery(view, query)viewResponse = future.get()iterator = viewResponse.iterator()while (iterator.hasNext()) { viewRow = iterator.next() println("Key: " + viewRow.key + ", Value:" + viewRow.value)} 12
  • QUICK PHP 13
  • QUICK PHP(PHP-COUCHBASE IN 13
  • include "Couchbase.php";$cb = new Couchbase;$cb->addCouchbaseServer("localhost");$view = $cb->getView("design_doc", "by_state");$result = $view->getResult();foreach($result AS $row) { echo $row->value;} 14
  • GET 15
  • GETgem install couchbase 15
  • GET gem install couchbasehttp://www.couchbase.org/code/couchbase/ 15
  • GET gem install couchbasehttp://www.couchbase.org/code/couchbase/http://github.com/couchbaselabs/php- 15
  • HTTP:// 16
  • HTTP:// DownloadGetting Started Guides In-Depth Tutorials Screencasts 16
  • QUESTION 17