Replies: 2 comments 3 replies
-
I would be very happy if this allowed for replication from static content blob store / CDN. Bonus points if we can get fine-grained delta updates via range query. Rough design idea: For replicating top-level registry state, represent log updates as a stream of protobuf messages, something like: message RegistryRecord {
uint64 index = 1;
string log_id = 2;
string record_id = 3;
} Add a new API endpoint, e.g. {
"content_sources": [
{"type": "http", "url": "https://blobs.bigcorp.com/warg/records_1000_1999.bin"},
{"type": "http", "url": "https://blobs.bigcorp.com/warg/records_2000_2999.bin"}
]
} Replicators can fetch these sources with normal HTTP cache / range-request semantics for efficient sync as long as the URLs are stable and contents append-only, even if the server doesn't shard the record stream. For replicating package logs I think the current fetch API can technically get the job done, but we could refine it or add another e.g. |
Beta Was this translation helpful? Give feedback.
-
For the use case of Monitors, they can use the public REST API endpoint message CheckpointCommit {
uint32 index = 1;
CheckpointEnvelope checkpoint_envelope = 2;
repeated Leaf leafs = 3;
}
message CheckpointEnvelope {
Checkpoint checkpoint = 1;
string key_id = 2;
string signature = 3;
}
message Checkpoint {
uint32 log_length = 1;
string log_root = 2;
string map_root = 3;
}
message Leaf {
string log_id = 1;
string record_id = 2;
} I have |
Beta Was this translation helpful? Give feedback.
-
Use cases:
The protocol and reference implementation needs to be solidified. I'm investigating and working on a proposal, but I'd like to start the discussion here and welcome any thoughts.
Beta Was this translation helpful? Give feedback.
All reactions