Y
Hacker News
new
|
ask
|
show
|
jobs
by
stock_toaster
5142 days ago
Are there any connector libs that provide "simple" last-write-wins out of the box?
2 comments
bonzoesc
5142 days ago
Simple last-write-wins can be configured per-bucket, so client libs can be naïve:
http://wiki.basho.com/HTTP-Set-Bucket-Properties.html
link
aphyr
5142 days ago
It's not hard. def merge(siblings) { sort_by(siblings) { |s| s.timestamp } }.last
Or, in Knockbox/Meangirls, strategies like LWW-set.
Until your clocks get out of sync.
link