replicache icon indicating copy to clipboard operation
replicache copied to clipboard

Support collecting old client records from server

Open aboodman opened this issue 2 years ago • 2 comments

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 avatar Nov 17 '22 03:11 aboodman

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?

user72356 avatar Nov 21 '22 17:11 user72356

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.

agallio avatar Aug 14 '24 12:08 agallio