What is new in Riak 2.0
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

What is new in Riak 2.0

on

  • 1,084 views

Walk through some basic examples for Riaks Solr integration yokozuna, CRDTs, and Authentication

Walk through some basic examples for Riaks Solr integration yokozuna, CRDTs, and Authentication

Find all the example on Github https://github.com/sideshowcoder/whats_new_in_riak_2_0

Statistics

Views

Total Views
1,084
Views on SlideShare
676
Embed Views
408

Actions

Likes
0
Downloads
3
Comments
0

6 Embeds 408

http://sideshowcoder.com 403
http://twimblr.appspot.com 1
http://www.linkedin.com 1
http://newsblur.com 1
https://www.google.de 1
http://www.newsblur.com 1

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

What is new in Riak 2.0 Presentation Transcript

  • 1. Exploring Riak 2.0 Let me tell you about Solr, CRDTs, and Authentication
  • 2. Philipp Fehre ! Twitter @ischi Github @sideshowcoder http://sideshowcoder.com
  • 3. Riak 2.0 is coming so time to explore!
  • 4. http://docs.basho.com/riak/2.0.0pre5/downloads/
  • 5. What I changed…
  • 6. What is new?
  • 7. Not a search expert, correct me if I am wrong!
  • 8. Yokozuna ~ Solr ~ Search
  • 9. Now there is Solr, which is great
  • 10. DEMO
  • 11. Solr can do much more…
  • 12. But I can’t because I don’t know Solr this well :(
  • 13. How it works
  • 14. Solr running on the Nodes
  • 15. Riak handles the distribution
  • 16. http://www.youtube.com/watch?v=-c1eynVLNMo
  • 17. CRDTs Convergent / Commutative Replicated Data Types
  • 18. What?
  • 19. Why?
  • 20. function _unionMergeProperties(siblings, properties, cb) { var _vclock = siblings[0].meta.vclock; var root = _.omit.apply(siblings[0].data, properties); var dataObjs = _.pluck(siblings, "data"); properties.forEach(function(property) { var data = _.pluck(dataObjs, property); var mergedData; if(_.isArray(data[0])) { mergedData = _.union.apply(this, data); } else if(_.isNumber(data[0])) { mergedData = Math.max.apply(this, data); } else { cb(new Error("Can't union merge " + data[0])); } root[property] = mergedData; }); Object.defineProperty(root, "_vclock", { value: _vclock }); cb(null, root); } !
  • 21. Offer some save datatypes and operations
  • 22. Counters
  • 23. Sets
  • 24. Maps
  • 25. DEMO
  • 26. See could have used a set before…
  • 27. What about data size?
  • 28. Grow O(actors)
  • 29. Use them for years and still be save
  • 30. Drivers are coming
  • 31. http://www.youtube.com/watch?v=zUJiWEbtCv8
  • 32. Authentication Finally users for riak
  • 33. Implement Riak based app for Company
  • 34. Deploy ~> DevOps
  • 35. Now…
  • 36. DevOps: Ok this is nice, so how do I restrict access for clients? Me: We use HTTP and don't pass queries to the DB DevOps: Meee…
  • 37. Now Riak has Auth
  • 38. riak-admin securtiy add-user phil
  • 39. riak-admin security add-user phil password=justmypassword
  • 40. riak-admin securtiy grant riak_kv.get ON default test TO phil
  • 41. riak-admin security add-source all 127.0.0.1/32 trust
  • 42. So basically works like postgres
  • 43. It’s coming, but besides the erlang client no support yet
  • 44. http://www.youtube.com/watch?v=T6i8S6_dV7U
  • 45. Questions? ! Be sure to join the Riak UG Munich ! http://www.meetup.com/Riak-Munchen/