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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

What is new in Riak 2.0

891

Published on

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

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
891
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

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/

×