Re: Integrating Riak

2011-11-23 Thread Andy Skelton
On Wed, Nov 23, 2011 at 10:25 AM, Sean Cribbs wrote: > Yes, and you might be able to make this simpler yet. Instead of building > releases, maintain your code separately (this will also let you evolve it > separately from Riak) and simply add it to the code path and start it using > switches in vm

Re: Integrating Riak

2011-11-23 Thread Sean Cribbs
On Wed, Nov 23, 2011 at 11:17 AM, Andy Skelton wrote: > I will be embedding my commit hooks and MR functions in the database > VM. That's not unreasonable but that is most of my project right > there. The rest is just a tiny webmachine resource module which > provides a specialized interface for

Re: Integrating Riak

2011-11-23 Thread Andy Skelton
I will be embedding my commit hooks and MR functions in the database VM. That's not unreasonable but that is most of my project right there. The rest is just a tiny webmachine resource module which provides a specialized interface for inputting data into Riak. I might also want to embed some riak-d

Re: Integrating Riak

2011-11-23 Thread Sean Cribbs
That came off a bit harshly, let me rephrase. If you're building an application that is a client of Riak KV/Search/Etc, depend on the client libraries and keep Riak separate -- for all of those reasons Dave mentioned. If your application is a Riak Core app, then the decision is a bit more fuzzy, a

Re: Integrating Riak

2011-11-23 Thread Sean Cribbs
Do you embed PostgreSQL or Oracle in your application? Generally you don't (sqlite3 aside). This is the same concept. Depend on the client library, not the database. On Wed, Nov 23, 2011 at 10:57 AM, Andy Skelton wrote: > This is the answer I hoped not to read. You might call it a premature > o

Re: Integrating Riak

2011-11-23 Thread Andy Skelton
This is the answer I hoped not to read. You might call it a premature optimization but I believe it is reasonable to try to create a distributed Erlang app with Riak as a dependency. I've been hacking on a Riak fork that twiddles the rebar and reltool configs to shoehorn my own code into the same

Re: Integrating Riak

2011-11-23 Thread Andrew Berman
Ok, cool, thanks Dave, makes sense. Keep up the great work! On Tue, Nov 22, 2011 at 9:31 PM, David Smith wrote: > On Tue, Nov 22, 2011 at 4:36 PM, Andrew Berman wrote: > > 4. Does it make more sense to just install a riak package and use the > > erlang pb client? Seems like it would be less

Re: Integrating Riak

2011-11-22 Thread David Smith
On Tue, Nov 22, 2011 at 4:36 PM, Andrew Berman wrote: > 4.  Does it make more sense to just install a riak package and use the > erlang pb client?  Seems like it would be less efficient especially since > these will live on the same machine. This is the preferred way to attack this problem. Separ

Integrating Riak

2011-11-22 Thread Andrew Berman
Hello, I'm a little confused on how I would go about integrating Riak into an Erlang application. Here's my use case. I'm creating an HTTP proxy using Misultin which intercepts any requests to my backend REST services and provides all the session handling. So, I would like to us