Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created November 10, 2010 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/671325 to your computer and use it in GitHub Desktop.
Save PharkMillups/671325 to your computer and use it in GitHub Desktop.
<jonas11235> can I run an application in the same vm used by riak? is this a good approach?
11:50 <benblack> you certainly can. what problem are you trying to solve?
11:52 <jonas11235> benblack: I'm new to riak and this is my first erlang app,
I'm just verifying if there is any reason to keep the database separated
11:52 <jonas11235> benblack: I'll using erlang + webmachine + riak
11:52 <benblack> if you are not experienced in this, i recommend NOT putting them in the same app.
11:52 <jonas11235> benblack: [I'll be using]
11:53 <benblack> just access riak via http or pb
11:53 <jonas11235> benblack: what are the risks? they expose internal
details of the database?
11:54 <benblack> risks or not, it does not buy you anything
11:54 <benblack> and will definitely make your life harder
11:54 <benblack> use the provided interfaces
11:54 <jonas11235> benblack: oh, ok
11:54 <benblack> that way when you run into trouble someone can actually help you
11:55 <jonas11235> benblack: I think I would save some memory and have some
performance improvements in the queries
11:55 <benblack> it's premature optimization day!
11:55 <jonas11235> benblack: :)
11:55 <benblack> if you run into memory problems or performance problems,
then consider changing
11:55 <benblack> i doubt you will
11:55 <jonas11235> benblack: actually no, I will use the client interface as you said
11:56 <benblack> good plan
11:57 <jonas11235> benblack: I saw that they have two different client apis for erlang,
should I have a look on both or one of the is generally better?
11:58 <benblack> one is native the other is protobuffs (pbc)
11:58 <benblack> both work fine
11:58 <benblack> but i suspect more people use the pb interface than
use erlang native
11:58 <jonas11235> benblack: I'll go for the native in this case
11:58 <benblack> i'd got he other way, but whatever
11:58 <jonas11235> benblack: why?
11:58 <benblack> because you are learning this all for the first time.
use the most common stuff.
11:59 <jonas11235> benblack: ok, another good advice :)
12:00 <drev1> jonas11235: the Wriaki sample app might be a good place to start to learn
about using Riak from an Erlang application. https://github.com/basho/wriaki
12:00 <jonas11235> drev1: I watched the video
12:01 <jonas11235> drev1: thank you for the link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment