Re: last_write_wins

2014-01-30 Thread John Daily
Replies inline. (Thanks to Russell for the link to my blog series, but honestly, as I now re-read the section on conflict resolution, I’m unhappy with it. It’s a very confusing topic and I regret not doing a better job of clarifying it. This answer will undoubtedly also be more confusing than I

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
sage - > From: "Edgar Veiga" > To: "Eric Redmond" > Cc: "Jason Campbell" , "riak-users" < > riak-users@lists.basho.com>, "Russell Brown" > Sent: Friday, 31 January, 2014 9:54:33 AM > Subject: Re: last_write_win

Re: last_write_wins

2014-01-30 Thread Jason Campbell
on has to take advantage of the extra consistency and reliability for it to make sense. Sorry again, Jason Campbell - Original Message - From: "Edgar Veiga" To: "Eric Redmond" Cc: "Jason Campbell" , "riak-users" , "Russell Brown" Sent:

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
person on this list to see Riak being used for >>> all sorts of uses, but I believe in the right tool for the right job. >>> Unless there is something I don't understand, Riak is probably the wrong >>> tool. It will work, but there is other software that will wor

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
nless there is something I don't understand, Riak is probably the wrong >> tool. It will work, but there is other software that will work much better. >> >> I hope this helps, >> Jason Campbell >> >> - Original Message - >> From: "Edgar V

Re: last_write_wins

2014-01-30 Thread Eric Redmond
> I'm as happy as the next person on this list to see Riak being used for all >> sorts of uses, but I believe in the right tool for the right job. Unless >> there is something I don't understand, Riak is probably the wrong tool. It >> will work, but there is ot

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
used for > all sorts of uses, but I believe in the right tool for the right job. > Unless there is something I don't understand, Riak is probably the wrong > tool. It will work, but there is other software that will work much better. > > I hope this helps, > Jason Campbell

Re: last_write_wins

2014-01-30 Thread Eric Redmond
riginal Message - > From: "Edgar Veiga" > To: "Russell Brown" > Cc: "riak-users" > Sent: Friday, 31 January, 2014 3:20:42 AM > Subject: Re: last_write_wins > > > > I'll try to explain this the best I can, although it's a sim

Re: last_write_wins

2014-01-30 Thread Jason Campbell
. It will work, but there is other software that will work much better. I hope this helps, Jason Campbell - Original Message - From: "Edgar Veiga" To: "Russell Brown" Cc: "riak-users" Sent: Friday, 31 January, 2014 3:20:42 AM Subject: Re: last_write_wins

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
I'll try to explain this the best I can, although it's a simples architecture I'm not describing it in my native language :) I have a set of node.js workers (64 for now) that serve as a cache/middleware layer for a dozen of php applications. Each worker deals with a set of documents (it's not a di

Re: last_write_wins

2014-01-30 Thread Guido Medina
Hi Russell, Thanks for your response, I understand most of it, I know LWW=true and allow_multi=true won't make any sense, but look at this scenario: All of our buckets have allow_multi=false except for the one bucket we have for CRDT counters, our application requires certain some level of c

Re: last_write_wins

2014-01-30 Thread Russell Brown
On 30 Jan 2014, at 10:58, Guido Medina wrote: > Hi, > > Now I'm curious too, according to > http://docs.basho.com/riak/latest/ops/advanced/configs/configuration-files/ > the default value for Erlang property last_write_wins is false, now, if 95% > of the buckets/keys have no siblings (or con

Re: last_write_wins

2014-01-30 Thread Guido Medina
Hi, Now I'm curious too, according to http://docs.basho.com/riak/latest/ops/advanced/configs/configuration-files/ the default value for Erlang property last_write_wins is false, now, if 95% of the buckets/keys have no siblings (or conflict resolution), does that mean that for such buckets las

Re: last_write_wins

2014-01-30 Thread Russell Brown
On 30 Jan 2014, at 10:37, Edgar Veiga wrote: > Also, > > Using last_write_wins = true, do I need to always send the vclock while on a > PUT request? In the official documention it says that riak will look only at > the timestamp of the requests. Ok, from what you’ve said it sounds like you a

Re: last_write_wins

2014-01-30 Thread Edgar Veiga
Also, Using last_write_wins = true, do I need to always send the vclock while on a PUT request? In the official documention it says that riak will look only at the timestamp of the requests. Best regards, On 29 January 2014 10:29, Edgar Veiga wrote: > Hi Russel, > > No, it doesn't depend. It'

Re: last_write_wins

2014-01-29 Thread Edgar Veiga
Hi Russel, No, it doesn't depend. It's always a new value. Best regards On 29 January 2014 10:10, Russell Brown wrote: > > On 29 Jan 2014, at 09:57, Edgar Veiga wrote: > > tl;dr > > If I guarantee that the same key is only written with a 5 second interval, > is last_write_wins=true profitabl

Re: last_write_wins

2014-01-29 Thread Russell Brown
On 29 Jan 2014, at 09:57, Edgar Veiga wrote: > tl;dr > > If I guarantee that the same key is only written with a 5 second interval, is > last_write_wins=true profitable? It depends. Does the value you write depend in anyway on the value you read, or is it always that you are just getting a t

Re: last_write_wins

2014-01-29 Thread Edgar Veiga
tl;dr If I guarantee that the same key is only written with a 5 second interval, is last_write_wins=true profitable? On 27 January 2014 23:25, Edgar Veiga wrote: > Hi there everyone! > > I would like to know, if my current application is a good use case to set > last_write_wins to true. > > Ba