rocicorp / replicache

Realtime Sync for Any Backend Stack
https://doc.replicache.dev
1.05k stars 37 forks source link

feat: Implements Client state Garbage Collection for Simplified Dueling Dags #689

Closed grgbkr closed 2 years ago

grgbkr commented 2 years ago

Simplified Dueling Dags requires a mechanism for collecting the perdag state for Clients (i.e. tabs) which have been closed.

Every five minutes, each Client collects any Clients that haven't updated their heartbeat timestamp for at least seven days.

See larger design at https://www.notion.so/Simplified-DD1-1ed242a8c1094d9ca3734c46d65ffce4

Part of #671

vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rocicorp/replicache/GfXR6aeiqsDsryiRtkuSMYqWCqtX
✅ Preview: https://replicache-git-grgbkr-sdd1-client-collection-rocicorp.vercel.app