Skip to content

Make new implementation of p2p module #82

Description

@JackBekket

I am looking to create a federated network of local AI worker nodes using a rendezvous point principle, and you want to exchange peer addresses and gRPC addresses using a p2p protocol.

In my case, the rendezvous point will be a string that all your AI worker nodes and the balance node will use to connect and exchange addresses.

I want to use DHT + PubSub (+gossipSub if possible) as p2p protocol.

Your tasks -- write a code with this requirements:
1.Implement the p2p module : Use the p2p module to create a new instance of the pubsub protocol. Configure the module to use the chosen rendezvous point string.
2. Create a message format: Define a message format for exchanging peer addresses and gRPC addresses. This format should include the peer's ID, the gRPC address, and any other relevant information.
3. Implement the exchange logic: Write code to exchange peer addresses and gRPC addresses between the balance node and the worker nodes. The balance node should periodically broadcast its own address and gRPC address to the pubsub topic, and the worker nodes should listen for these messages and update their list of peers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions