#raft #broadcast-channel #context #browser #browsing #rpc #api

browseraft

A rust implementation of raft for the browser, using a BroadcastChannel for RPC

3 releases

0.1.2 Jan 29, 2021
0.1.1 Jan 28, 2021
0.1.0 Jan 28, 2021

#16 in #broadcast-channel

MIT license

23KB
527 lines

browseraft

Coordinate between browsing contexts (windows/tabs/iframes/workers) using the raft protocol, using the BroadcastChannel API.

Running The Example

The multiworker example is built using yew and trunk. Follow trunk's instructions for installation, then run it with trunk serve.


lib.rs:

browseraft

For more, see the raft protocol

Processes

Leader Election

When any follower's election times out, they // TODO

Dependencies

~8–11MB
~197K SLoC