-
Notifications
You must be signed in to change notification settings - Fork 0
Data Bundles
A code bundle is a file that contains code combined from a bunch of different places. It tends to be lossy. Examples of code bundles are what is generated by Webpack (calls itself a module bundler), Parcel (a dictionary definition of bundle includes the word parcel), and Browserify (called bundle.js).
A data bundle is a file that contains data combined from a different places. It could be lossless. This could reduce the number of requests to S3 while still keeping data in a JSON format. The data can also be compressed with Brotli, gzip, or bzip before being uploaded to s3. It could be stored this way in localStorage but that appears to just support strings, so it wouldn't be compressed.
For the message store, a bundle could be created by each client, and written to for up to a timeframe, perhaps an hour, with debouncing. During the hour no other client would be allowed to write to the bundle. This would prevent data loss.
Later on two bundles could be merged into one, through compacting, or data could be deleted from a bundle.