Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mitigating data loss and delays due to batching #24

Open
alexmturner opened this issue Mar 15, 2023 · 1 comment
Open

Mitigating data loss and delays due to batching #24

alexmturner opened this issue Mar 15, 2023 · 1 comment
Labels

Comments

@alexmturner
Copy link
Collaborator

While batching helps reduce report volume, a simple implementation would risk data loss if the user agent shuts down before a batch is complete. This is especially a concern for reports issued by the winning bidder of a FLEDGE auction, as they could be triggered by window.fence.reportEvent() substantially later, see here for details. Batching would also necessarily delay reports until the batch is complete, again this is especially a concern for the winning bidder case.

To mitigate these concerns, we could consider modifying the batching scope. For example, we could batch contributions conditional on a window.fence.reportEvent() call separate from other contributions from the winning bidder. We could also consider persisting any pending contributions to disk to avoid data loss, allowing the batch to be processed when the user agent starts up next.

@alexmturner
Copy link
Collaborator Author

Partially completed in #40. However, the risk of data loss due to an ongoing auction or shared storage operation is still possible (albeit much reduced).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant