Implemented Floodsub from scratch
Wrote a Floodsub module for scratch in my experimental p2p stack. Learned a great deal how pubsub broadcasting systems behave under the hood with complex rust async designs. Getting ready to write Gossipsub now.
Wrote a Floodsub module for scratch in my experimental p2p stack. Learned a great deal how pubsub broadcasting systems behave under the hood with complex rust async designs. Getting ready to write Gossipsub now.
Ran into an issue while building my experimental p2p stack in Rust – multiple parts of the code wanted &mut TcpStream. Turned out the design was improper. What worked for me was creating a single IO task owning the socket, with everything else communication via mpsc. Cleaner ownership, fewer borrow issues, and easier to reason about.
Started writing an experimental p2p stack, rnet inspired from libp2p specs, to dig deeper into rust and core p2p mechanics.