m-ld / m-ld-spec

Platform-independent m-ld specification
https://spec.m-ld.org/
MIT License
24 stars 1 forks source link

Journal truncation strategies #24

Open gsvarovsky opened 4 years ago

gsvarovsky commented 4 years ago

The journal is unbounded, which could eventually exceed storage on a resource-limited device.

Need a (configurable, learnable) way to truncate it, with strategies to suit different applications.

This has been mitigated by #61, as the journal is more compact.

See also #31, #6 and #20.

gsvarovsky commented 3 years ago

When truncating the journal, need to publish the fact, so that others will see our internal tick, which might be quite advanced due to incoming updates. If not, and we need to accept a snapshot in future, we won't be sure that the snapshot has had all our updates (there being no way to see from a tick whether it has been externally visible). Relates to https://github.com/m-ld/m-ld-js/commit/e5d79cbf05f6b8f06ee9b46d9da50f288459ddf3

gsvarovsky commented 2 years ago

Some readying accommodations made on Edge: https://github.com/m-ld/m-ld-js/blob/ad3d852282f180b15ecb3b5fe2cf187f74ba3e36/src/config.ts#L98