View on GitHub

BullyAlgorithm-LeaderElection-Chat

A GO implementation of the Bully algorithm for jhudson8's chat example

Bully Algorithm - Leader Election - Chat

A GO implementation of the Bully algorithm for Joe Hudson’s chat example

This bully implementation is meant to be used as a module with callback functions. The actual usage of the module is in serverBully.go. As you’ll see, it’s very easy to use it.

The server state is not maintained when switching between leaders so the chat room is not remembered and stuff like that. For that, there should’ve been implemented a distributed fault tolerant database too.

screenshot.jpg