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

Support collecting old client records from server #1033

Open
aboodman opened this issue Nov 17, 2022 · 2 comments
Open

Support collecting old client records from server #1033

aboodman opened this issue Nov 17, 2022 · 2 comments

Comments

@aboodman
Copy link
Contributor

The current protocol does not support deleting old client records. This is because clients are created implicitly by either push or pull, and the clientID is user-supplied.

So if a client record is deleted, it is not possible to distinguish a truly new client ID that should be allowed to be created, from a reused clientID that should be rejected. And we cannot allow clientID to be reused because it would break sequentiality of mutations from that client.

@aboodman aboodman changed the title It should be possible to collect old client records from server Support collecting old client records from server Nov 17, 2022
@user72356
Copy link

I can't find this information now but, I thought I had read somewhere that Replicache clients invalidate themselves after a month or so of not connecting to the backend? If this was the case, would we be able to delete old clients and also old soft-deletes?

@agallio
Copy link

agallio commented Aug 14, 2024

Hi there, I encounter this issue where the replicache client & client group data growth becomes problematic due to write-only operations without deletion.

I understand this was raised about two years ago, and I'm curious about any developments since then. Has there been any progress on addressing the challenge of deleting old client records? I'd be interested to know if any solutions or workarounds have been found, or if this is still an open problem in the current protocol.

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

No branches or pull requests

3 participants