Building a peer to peer decentralized compute platform to run high demanding tasks distributedly.
- Add peer discovery as current approach is doing uneccessary broadcast
- IMP - Need to check why after creating 4 peers the 4th peer stucks in process server info awaiting lock
- Architect channels and different components properly
- Proper Error Handling
- Add channels so that inter thread communication is possible (ex, http and p2p)
- check if the processNewPeer handler a blocking task as we are awaiting there
- refactor the entire code
- make stream_id as UUID
- make stream_id unique so that boradcast_to_peers can work
- Move router to sever struct
- Implment the handle_connection in server struct
- Implement the connect_to_peer in server struct
The reason to do them is that we need to access them from the router closures
This project is moved to https://github.com/BitFab-Labs/rust_decentralized