Crates.io | atm0s-sdn-key-value |
lib.rs | atm0s-sdn-key-value |
version | 0.1.9 |
source | src |
created_at | 2023-11-17 18:54:57.82172 |
updated_at | 2024-01-31 17:55:31.46579 |
description | KeyValue service for atm0s-sdn |
homepage | |
repository | |
max_upload_size | |
id | 1039396 |
size | 209,220 |
This service implement key-value storage, which has set/get/del, sub/unsub
For working in unstable network, we ensure data is correct event if lost some previous packets. For that reason, we dont use any delta data technical, instead we sending full data each time we need to changed
With Set, Del only correct version will be used. In details:
For ensure data not losing when network changed, we implement simple replication algorithem, when each key is set to multiples node which generated by:
Each time Set, Get or Del will be sent to all of origin key and replication keys
Current version only sending OriginKey
We sending set command util received ack for that set version or newer version
We sending del command util received ack for that del version or setted with new data
We sending sub command util received ack or switched to unsub
We sending unsub command util received ack or switched to sub
We sync each acked key-value or subscribe state in each interval time