Demo showing how to sync into Cloudflare's new Durable Object SQLite.
Edge compute is great but what isn't great is compute with slow data reads.
Sync is the solution.
Electric provides Durable Objects with a high-performance, flexible sync engine from Postgres into the the new DO SQLite.
The DO makes an incremental sync call for the latest changes on each call (can take < 20ms when responses cached in the CDN) and then query the local db (will support up to 10 GBs).
Each Durable Object can have a full synced copy of the data it needs to do its work. This is the key to unlocking the potential of edge compute.
Edge Compute 🤝 Synced Data
npm run backend:up
npx wrangler dev
- open browser to /org/${id}