mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
feat(storage): replication (#11696)
Adds experimental session sync (`@earendil-works/pi-durable/sync`). Devices upload and pull a session's commits through a remote, reading them from the Chord store's outbox and applying them with `applyBatch`. If two devices continue the same session, the one that uploads second forks to a new session. I took out the extra sequence indexes from the earlier version of this branch, since the Chord outbox already persists every commit, so this no longer touches storage. --------- Co-authored-by: Armin Ronacher <armin.ronacher@active-4.com>
This commit is contained in:
parent
d7a988d18d
commit
e5f3b41506
19 changed files with 2927 additions and 0 deletions
|
|
@ -70,6 +70,9 @@
|
|||
"@earendil-works/chord/tui/launcher": [
|
||||
"../../../packages/chord/src/node/tui/index.ts"
|
||||
],
|
||||
"@earendil-works/chord/sync": [
|
||||
"../../../packages/chord/src/sync/index.ts"
|
||||
],
|
||||
"@test/contracts/*": [
|
||||
"../../chord/test/node/fixtures/plugins/contracts/*.ts"
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue