graphops / graphcast-sdk

Graphcast SDK allows you to build gossip-powered Radios
https://docs.graphops.xyz/graphcast/intro
Apache License 2.0
16 stars 3 forks source link

[Feat.Req] Pubsub network sharding #298

Open hopeyen opened 10 months ago

hopeyen commented 10 months ago

Problem statement On the relay network, all nodes should eventually receive all messages, which might cause too much work for certain nodes. To alleviate network traffic from participating nodes, we can utilize pubsub topic sharding. Waku propose potential technical solutions with RLN + Autosharding + message size limit + gossipsub.

Current available solution of static sharding may provide an immediate solution.

We should only work on this if the network performance is a proven issue.

Expectation proposal

example sharding: If we split the network into 9 shards, assume a uniform distribution of deployment representations, then for each deployment, we can simply let corresponding shard to be graphcast_mainnet_[deployment.bytes32().to_int() % 9]

Alternative considerations

Additional context Network sharding: https://rfc.vac.dev/spec/51/ Relevant comment: https://github.com/graphops/graphcast-sdk/issues/295#issuecomment-1778745913