vacp2p / mvds

Minimal Viable Data Sync Implementation
https://specs.vac.dev/specs/mvds.html
MIT License
13 stars 3 forks source link

Persistency for MVDS #63

Closed adambabik closed 5 years ago

adambabik commented 5 years ago

Problem

Currently, mvds implements storage only in memory, however, for the production use cases we need persistent storage.

Solution

There are a few components that require some sort of storage. We need to identify which require persistence storage.

Component Persistency Implemented
Peers Yes No
States Yes No
Messages (store/ dir) Yes No
Payloads No No
Epoch Yes No

@decanus please let me know if this table is correct and I will start working on the persistency with sqlite.

cc @cammellos

decanus commented 5 years ago

@adambabik These components look accurate to me, one thing that also needs to be saved is the epoch. I have an issue for that here: https://github.com/status-im/status-console-client/issues/120

adambabik commented 5 years ago

@decanus thanks, updated the table.