Loading video...

Video Failed to Load

Go Home

The beauty of sync engines: 📝 update on one client 🌐 HTTP POSTs to API server 🗃️ API updates the DB 📜 DB feeds changes to WAL (write ahead log) 🔁 sync engine picks up WAL and feeds data to subscribed clients 💻 long polling clients update their own...

63,158 views • 1 year ago •via X (Twitter)

12 Comments

Kyle Gill's profile picture
Kyle Gill1 year ago

Why this is cool: - a single generic endpoint akin to a /graphql POST (define the schema, stuff just works™️) - the server is still the source of truth in the DB - there's no loading status on the data, no Promise (ie no loading spinners) - multiplayer for free

Wonderchat's profile picture
Wonderchat2 years ago

Automate up to 70% of your customer support today. Save time and help your users find answers quickly. Try now at

Zach McQuiston's profile picture
Zach McQuiston1 year ago

But what if ✨everything was database ✨

Kyle Gill's profile picture
Kyle Gill1 year ago

This demo is super cool! Love the concept of just dissolving everything away to run in the database server. Feels like it's the eventual end state of everything

jensen's profile picture
jensen1 year ago

Built this one with sqlsync Can try it at

Kyle Gill's profile picture
Kyle Gill1 year ago

Will definitely look into it!

Blake Rouse's profile picture
Blake Rouse1 year ago

Every other week we toy with the idea of starting an electric migration hahaha

Kyle Gill's profile picture
Kyle Gill1 year ago

Haha yeah I need to wait until a stable release before I deal with another migration 😂

Cruz's profile picture
Cruz1 year ago

R u using zero

Kyle Gill's profile picture
Kyle Gill1 year ago

This is Electric + Tanstack optimistic

whos your daddy's profile picture
whos your daddy1 year ago

What are the advantages to this over an API writing to a WAL? Wouldn't this tightly couple your DB design to your business logic or is that not a big deal?

Kyle Gill's profile picture
Kyle Gill1 year ago

The DB maintains the ACID rigamarole and queryability that a normal app benefits from so you can decide what things to sync I think is the idea. If a table doesn't need to be synced live you can still query it just fine but they run on the same pipes.

Related Videos