These are chat archives for atomix/atomix

14th
Nov 2017
Jordan Halterman
@kuujo
Nov 14 2017 04:39
Atomix 1 does. Atomix 2's Raft implementation still does, it's just not yet exposed via the API.
Brian Krahmer
@bkrahmer
Nov 14 2017 08:29
@kuujo thanks, that's great to hear! not a big rush, though. i just need locks at first, and can handle just re-bootstrapping nodes when the node set changes (as it relatively rarely happens) for now. i think i will start working on the library on my side, and will look forward to the feature. @johnou https://gist.github.com/bkrahmer/765b0c33ecd64f5db1ac72bdeecf217a
Johno Crawford
@johnou
Nov 14 2017 20:27
@kuujo would you consider accepting a pull request for adding CompletableFuture<Map<K, Versioned<V>>> getAllPresent(Iterable<K> keys) to asyncconsistentmap?
Johno Crawford
@johnou
Nov 14 2017 20:38
i have a collection that I need to check against the asyncmap but a loop of 100+ keys seems a little ineffective
Johno Crawford
@johnou
Nov 14 2017 22:42
johnou/atomix@5c36a03
Jordan Halterman
@kuujo
Nov 14 2017 22:54
sure why not :-)
Johno Crawford
@johnou
Nov 14 2017 22:56
ok cool, then i'll go ahead and fix the merge conflicts + add some more tests
Jordan Halterman
@kuujo
Nov 14 2017 22:56
:+1:
Johno Crawford
@johnou
Nov 14 2017 22:58
essentially we'd like to use a distributed map as an online status map, kind of sucks to iterate over the map a few hundred times for friends to see if they are online or not
Jordan Halterman
@kuujo
Nov 14 2017 22:58
yep
Johno Crawford
@johnou
Nov 14 2017 22:59
atomix 1 had some local cached map option iirc but I suppose that wouldn't scale well since you'd be storing all entries on heap
Johno Crawford
@johnou
Nov 14 2017 22:59
then again it's the same here unless you are using the partitioned map, right?
Jordan Halterman
@kuujo
Nov 14 2017 22:59
just use withRelaxedReadConsistency in the builder
actually I need to rename that
I’ve always hated that
needs to just be withCaching or something
Johno Crawford
@johnou
Nov 14 2017 23:33
@kuujo fixed the merge conflict and added a few more tests, let me know if the coding style is off or if you'd like more tests, getting a bit late here so I could just continue on it tomorrow
PartitionedAsyncConsistentMap impl could be a little more clever eg. only query maps who own the given keys based on keyHasher