Your SlideShare is downloading. ×
0
Exploring Riak 2.0
Let me tell you about Solr, CRDTs, and Authentication
Philipp Fehre
!

Twitter @ischi
Github @sideshowcoder
http://sideshowcoder.com
Riak 2.0 is coming so time to explore!
http://docs.basho.com/riak/2.0.0pre5/downloads/
What I changed…
What is new?
Not a search expert, correct me if I am wrong!
Yokozuna ~ Solr ~ Search
Now there is Solr, which is great
DEMO
Solr can do much more…
But I can’t because I don’t know Solr this well :(
How it works
Solr running on the Nodes
Riak handles the distribution
http://www.youtube.com/watch?v=-c1eynVLNMo
CRDTs
Convergent / Commutative Replicated Data Types
What?
Why?
function _unionMergeProperties(siblings, properties, cb) {
var _vclock = siblings[0].meta.vclock;
var root = _.omit.apply(...
Offer some save datatypes and operations
Counters
Sets
Maps
DEMO
See could have used a set before…
What about data size?
Grow O(actors)
Use them for years and still be save
Drivers are coming
http://www.youtube.com/watch?v=zUJiWEbtCv8
Authentication
Finally users for riak
Implement Riak based app for Company
Deploy ~> DevOps
Now…
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:...
Now Riak has Auth
riak-admin securtiy add-user phil
riak-admin security add-user phil
password=justmypassword
riak-admin securtiy grant riak_kv.get ON
default test TO phil
riak-admin security add-source all
127.0.0.1/32 trust
So basically works like postgres
It’s coming, but besides the erlang client no
support yet
http://www.youtube.com/watch?v=T6i8S6_dV7U
Questions?
!

Be sure to join the Riak UG Munich
!

http://www.meetup.com/Riak-Munchen/
What is new in Riak 2.0
What is new in Riak 2.0
Upcoming SlideShare
Loading in...5
×

What is new in Riak 2.0

903

Published on

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
903
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "What is new in Riak 2.0"

  1. 1. Exploring Riak 2.0 Let me tell you about Solr, CRDTs, and Authentication
  2. 2. Philipp Fehre ! Twitter @ischi Github @sideshowcoder http://sideshowcoder.com
  3. 3. Riak 2.0 is coming so time to explore!
  4. 4. http://docs.basho.com/riak/2.0.0pre5/downloads/
  5. 5. What I changed…
  6. 6. What is new?
  7. 7. Not a search expert, correct me if I am wrong!
  8. 8. Yokozuna ~ Solr ~ Search
  9. 9. Now there is Solr, which is great
  10. 10. DEMO
  11. 11. Solr can do much more…
  12. 12. But I can’t because I don’t know Solr this well :(
  13. 13. How it works
  14. 14. Solr running on the Nodes
  15. 15. Riak handles the distribution
  16. 16. http://www.youtube.com/watch?v=-c1eynVLNMo
  17. 17. CRDTs Convergent / Commutative Replicated Data Types
  18. 18. What?
  19. 19. Why?
  20. 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. 21. Offer some save datatypes and operations
  22. 22. Counters
  23. 23. Sets
  24. 24. Maps
  25. 25. DEMO
  26. 26. See could have used a set before…
  27. 27. What about data size?
  28. 28. Grow O(actors)
  29. 29. Use them for years and still be save
  30. 30. Drivers are coming
  31. 31. http://www.youtube.com/watch?v=zUJiWEbtCv8
  32. 32. Authentication Finally users for riak
  33. 33. Implement Riak based app for Company
  34. 34. Deploy ~> DevOps
  35. 35. Now…
  36. 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. 37. Now Riak has Auth
  38. 38. riak-admin securtiy add-user phil
  39. 39. riak-admin security add-user phil password=justmypassword
  40. 40. riak-admin securtiy grant riak_kv.get ON default test TO phil
  41. 41. riak-admin security add-source all 127.0.0.1/32 trust
  42. 42. So basically works like postgres
  43. 43. It’s coming, but besides the erlang client no support yet
  44. 44. http://www.youtube.com/watch?v=T6i8S6_dV7U
  45. 45. Questions? ! Be sure to join the Riak UG Munich ! http://www.meetup.com/Riak-Munchen/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×