Gossip-based distributed system