News for hackers. Stuff that matters.
Re:Is Redlock Safe? Reply to Redlock Analysis by jedberg on Tuesday February 09, 2016 @11:42AM (#11066551)
> Using less-consistent protocols to achieve a consistent view simply pushes the problem to a different layer.

Absolutely, but if you can avoid using global locks, which are error prone and reduce reliability, isn't that a good thing?

Re:Is Redlock Safe? Reply to Redlock Analysis by pron on Tuesday February 09, 2016 @12:54PM (#11067188)
It's not a question of good or bad. Providing a higher level of consistency than what your application needs will only hurt you, but many applications just cannot do with weak consistency.
Re:Is Redlock Safe? Reply to Redlock Analysis by derefr on Tuesday February 09, 2016 @06:55PM (#11069797)
I think the point being made here is that "what your application needs" is often something you chose your way into, and can choose your way back out of by backing out some other constraints—and that it's often more sensible to back out these constraints than to dive head-first into a problem domain that requires distributed locking.

In other words: if you set out to create Bitcoin in 1998, you might end up running into distributed consensus problems that are difficult enough that you decide to "solve an easier problem"—such that you end up creating Paypal instead.

Re:Is Redlock Safe? Reply to Redlock Analysis by pron on Tuesday February 09, 2016 @11:01PM (#11070681)
> I think the point being made here is that "what your application needs" is often something you chose your way into, and can choose your way back out of

I think that while this may be true for many requirements, consistency is among the least flexible ones. Besides, losing consistency usually makes your system more complicated, not less. Weak consistency has some real benefits (latency in some cases, tolerance for more failure modes), but simplicity is not usually one of them.

> In other words: if you set out to create Bitcoin in 1998, you might end up running into distributed consensus problems that are difficult enough that you decide to "solve an easier problem"—such that you end up creating Paypal instead.

I don't think that the design problems behind Bitcoin are any easier than distributed consensus, which, BTW, is not necessary for quite a few consistency levels.