• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Riak and Ruby
 

Riak and Ruby

on

  • 6,149 views

 

Statistics

Views

Total Views
6,149
Views on SlideShare
5,280
Embed Views
869

Actions

Likes
6
Downloads
74
Comments
0

8 Embeds 869

http://basho.com 535
http://nosql.mypopescu.com 157
http://www.scoop.it 144
http://basho.co.jp 18
http://localhost 6
http://crowdczar.com 5
http://localhost:3000 3
http://www-new.basho.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Riak and Ruby Riak and Ruby Presentation Transcript

    • Riak and Ruby Grant Schofield Developer Advocate Basho Technologies, Inc. basho Friday, July 9, 2010
    • Grant Schofield (@schofield) basho basho Friday, July 9, 2010
    • NoSQL •Web 2.0, Cloud, Enterprise??? •Useful Reference Point •Not AntiSQL •Schemaless (Mostly) •Diverse •Thoughtful Data (Not just a NoSQL basho Friday, July 9, 2010
    • NoSQL Includes... •Key Value Stores •Document Databases •Graphing Databases •Column Databases •Schemaless MySQL basho Friday, July 9, 2010
    • Prevalent Now •Memcache??? •Session Data •Caching Data •Complements Traditional RDBMS •Not The Magical Unicorn, but Pony Perhaps basho Friday, July 9, 2010
    • Riak •Open Source •Erlang •Dynamo and CAP Theorem Influenced •Advanced Key Value Store •Web Shaped •Distributed by Nature •Ops Obsessed •A Platform basho Friday, July 9, 2010
    • Dynamo Paper •Key Value Store Built By Amazon for Core Services •Sacrifice Availability for Consistency •Consistent Hashing •Merkle Trees •Vector Clocks •Eventually Consistent basho Friday, July 9, 2010
    • CAP Theorem Consistency, Availability, Partition Tolerance •Dr. Eric Brewer •At a Given Point You Get Two of the Three •Riak is Tunable •Eventual Consistency - Not an Excuse to Lose Data basho Friday, July 9, 2010
    • Advanced Key Value Store? •Not Just PUT and GET Key/Values •Multiple Interfaces •Links •Document Like •Pluggable Backend •Map/Reduce •Distributed basho Friday, July 9, 2010
    • Web Shaped •Biggest Distributed System Ever •Works Like the Web •Links •Talks HTTP Restfully •Load Balances Just Like Web Stuff basho Friday, July 9, 2010
    • Fundamentally Distributed •Built From The Start •Masterless •Homogenous •Consistent Hashing •Scales Horizontally •Fault Tolerant (Hinted Handoff) basho Friday, July 9, 2010
    • Consistent Hashing node 0 node 1 2160/4 node 2 node 3 hash(<<"beer">>,<<"dns">>) 2160/2 basho Friday, July 9, 2010
    • N, R, and W •N = Number of Replicas •R = Number of Replicas Needed for a Read •W = Number of Replicas Needed for a Write •DW = Number of Replicas Needed for a Durable Write •N Configurable Per Bucket •R and W Configurable Per Request basho Friday, July 9, 2010
    • R Value get(<<"beer">>,<<"dnr">>, R=2) (N=3) {ok, Object} X basho Friday, July 9, 2010
    • W Value put(<<"beer">>,<<"dnr">>, W=2) (N=3) ok X basho Friday, July 9, 2010
    • N=10, R/W = 2 get/put("beer", "dnr", R/W=2) (N=10) {ok, Object} X X X X X X X X basho Friday, July 9, 2010
    • Riak from Curl Putting Data In basho Friday, July 9, 2010
    • Taking Data Out basho Friday, July 9, 2010
    • Deleting The Data basho Friday, July 9, 2010
    • Finally, Ruby Stuff •Sean Cribbs - RDRC Training •riak-client - basic client •ripple - associations, ActiveModel •Really Elegant Code basho Friday, July 9, 2010
    • riak-client gem install riak-client basho Friday, July 9, 2010
    • riak-client get the data basho Friday, July 9, 2010
    • riak-client moar datas basho Friday, July 9, 2010
    • riak client got beer basho Friday, July 9, 2010
    • riak-client why yes, I do basho Friday, July 9, 2010
    • Link Walking http://localhost:8098/riak/beers/dnr/bars,_,1 http://localhost:8098/riak/bars/blue_note/beers,tap,1 http://localhost:8098/riak/areas/midtown/ /bars,tap,_/beers,_,1 basho Friday, July 9, 2010
    • riak-client find me a dnr! basho Friday, July 9, 2010
    • what does the Fry have on tap? basho Friday, July 9, 2010
    • in a bottle? basho Friday, July 9, 2010
    • riak-client ok, via ruby basho Friday, July 9, 2010
    • riak client via ruby with map reduce basho Friday, July 9, 2010
    • riak-client map basho Friday, July 9, 2010
    • riak-client map and reduce basho Friday, July 9, 2010
    • ripple gem install ripple basho Friday, July 9, 2010
    • schema design riak_20100704 people riak_20100705 tweets nosql_20100705 mongodb_20100705 basho Friday, July 9, 2010
    • basho Friday, July 9, 2010
    • basho Friday, July 9, 2010
    • A Model basho Friday, July 9, 2010
    • Other Features basho Friday, July 9, 2010
    • Riak as a Platform basho Friday, July 9, 2010
    • What’s Coming basho Friday, July 9, 2010
    • THANKS! http://wiki.basho.com riak-users@lists.basho.com freenode #riak basho Friday, July 9, 2010