Riak and Ruby

Click here to load reader

  • date post

    12-Jan-2015
  • Category

    Technology

  • view

    5.429
  • download

    0

Embed Size (px)

description

 

Transcript of Riak and Ruby

  • 1. Riak and Ruby Grant Schoeld Developer Advocate Basho Technologies, Inc. basho Friday, July 9, 2010

2. Grant Schoeld (@schoeld) bashobasho Friday, July 9, 2010 3. NoSQLWeb 2.0, Cloud, Enterprise???Useful Reference PointNot AntiSQLSchemaless (Mostly)DiverseThoughtful Data (Not just a NoSQLbasho Friday, July 9, 2010 4. NoSQL Includes...Key Value StoresDocument DatabasesGraphing DatabasesColumn DatabasesSchemaless MySQLbasho Friday, July 9, 2010 5. Prevalent NowMemcache???Session DataCaching DataComplements Traditional RDBMSNot The Magical Unicorn, but PonyPerhaps basho Friday, July 9, 2010 6. RiakOpen SourceErlangDynamo and CAP Theorem InuencedAdvanced Key Value StoreWeb ShapedDistributed by NatureOps ObsessedA Platform basho Friday, July 9, 2010 7. Dynamo PaperKey Value Store Built By Amazon forCore Services Sacrice Availability for ConsistencyConsistent HashingMerkle TreesVector ClocksEventually Consistent basho Friday, July 9, 2010 8. CAP TheoremConsistency, Availability,Partition ToleranceDr. Eric BrewerAt a Given Point You Get Two of theThree Riak is TunableEventual Consistency - Not an Excuse toLose Data basho Friday, July 9, 2010 9. Advanced Key Value Store?Not Just PUT and GET Key/ValuesMultiple InterfacesLinksDocument LikePluggable BackendMap/ReduceDistributed basho Friday, July 9, 2010 10. Web ShapedBiggest Distributed System EverWorks Like the WebLinksTalks HTTP RestfullyLoad Balances Just Like Web Stuffbasho Friday, July 9, 2010 11. FundamentallyDistributedBuilt From The StartMasterlessHomogenousConsistent HashingScales HorizontallyFault Tolerant (Hinted Handoff) basho Friday, July 9, 2010 12. Consistent Hashingnode 0node 12160/4node 2node 3 hash(,)2160/2 basho Friday, July 9, 2010 13. N, R, and WN = Number of ReplicasR = Number of Replicas Needed for aRead W = Number of Replicas Needed for aWrite DW = Number of Replicas Needed for aDurable Write N Congurable Per BucketR and W Congurable Per Request basho Friday, July 9, 2010 14. R Valueget(,,R=2) (N=3) {ok, Object}X basho Friday, July 9, 2010 15. W Valueput(,,W=2) (N=3) okX basho Friday, July 9, 2010 16. N=10, R/W = 2 get/put("beer", "dnr", R/W=2)(N=10){ok, Object} X XXXXX XX basho Friday, July 9, 2010 17. Riak from Curl Putting Data In basho Friday, July 9, 2010 18. Taking Data Out basho Friday, July 9, 2010 19. Deleting The Data basho Friday, July 9, 2010 20. Finally, Ruby Stuff Sean Cribbs - RDRC Trainingriak-client - basic clientripple - associations, ActiveModelReally Elegant Codebasho Friday, July 9, 2010 21. riak-clientgem install riak-client basho Friday, July 9, 2010 22. riak-client get the data basho Friday, July 9, 2010 23. riak-clientmoar datas basho Friday, July 9, 2010 24. riak client got beer basho Friday, July 9, 2010 25. riak-clientwhy yes, I do basho Friday, July 9, 2010 26. Link Walking http://localhost:8098/riak/beers/dnr/bars,_,1 http://localhost:8098/riak/bars/blue_note/beers,tap,1http://localhost:8098/riak/areas/midtown//bars,tap,_/beers,_,1 basho Friday, July 9, 2010 27. riak-client nd me a dnr! basho Friday, July 9, 2010 28. what does the Fry have on tap? basho Friday, July 9, 2010 29. in a bottle? basho Friday, July 9, 2010 30. riak-clientok, via ruby basho Friday, July 9, 2010 31. riak clientvia ruby with map reduce basho Friday, July 9, 2010 32. riak-clientmap basho Friday, July 9, 2010 33. riak-client map and reduce basho Friday, July 9, 2010 34. ripplegem install ripple basho Friday, July 9, 2010 35. schema designriak_20100704 peopleriak_20100705 tweetsnosql_20100705 mongodb_20100705 basho Friday, July 9, 2010 36. basho Friday, July 9, 2010 37. basho Friday, July 9, 2010 38. A Model basho Friday, July 9, 2010 39. Other Featuresbasho Friday, July 9, 2010 40. Riak as a Platform basho Friday, July 9, 2010 41. Whats Coming basho Friday, July 9, 2010 42. THANKS!http://[email protected] #riak basho Friday, July 9, 2010