These are chat archives for atomix/atomix
DistributedGroupand write from that leader. But even in that case, it’s impossible to ensure two nodes don’t believe themselves to be the leader simultaneously, so you still have to use the
DistributedGroupto ensure the leader with the highest term is the one that can write. The only thing that can be guaranteed is that only one leader will be elected for any term, that term numbers are unique and monotonically increasing, only one entry for any index will be committed, all commands will be eventually applied on all servers, etc and you have to work within the context of those guarantees to create exactly-once semantics through idempotency. Exactly-once in reality is impossible.