rocicorp / replicache

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

feat: Add persist to Replicache #753

Closed arv closed 2 years ago

arv commented 2 years ago

See Simplified Dueling Dags design doc

Replicache now creates two DAG stores backed by two different KV stores. These are referred to as memdag and perdag.

Replicache operates on the memdag and once in a while it does a persist which syncs data from the memdag to the perdag.

Towards #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/CHPDL12eut4dNuDksAZENwFyonYT
✅ Preview: https://replicache-git-fork-arv-replicache-perdag-memdag-rocicorp.vercel.app

aboodman commented 2 years ago

Exciting!

grgbkr commented 2 years ago

LGTM

arv commented 2 years ago

If they exist, I'd expect those tests to break with this change.

I did change some tests related to this. Probably in an earlier PR