vacp2p / research

Thinking in code
MIT License
62 stars 4 forks source link

State synchronization/consensus in waku2 store protocol #80

Open staheri14 opened 2 years ago

staheri14 commented 2 years ago

Problem

The current state synchronization of the Waku2 store protocol is empowered by the Waku FT-store protocol.

Under the aforementioned assumptions, Waku2 FT-store protocol provides eventual consistency. However, the message state of store nodes may diverge for some points in time due to network delay.

However, we are seeking a better solution to get past the current assumptions and limitations, namely:

Solution ideas and ongoing efforts

There is ongoing research and development on a more advanced state synchronization protocol. The initial proposal is provided in https://github.com/vacp2p/research/issues/73. This proposal has a potential scalability issue and is prone to snowball effect which can eat up a large portion of store nodes bandwidth. Further solution proposal with better scalability is currently underway (I will link it to this issue when it gets ready).