Navigation überspringen
The beauty of sync engines:
0:00 / 0:20

The beauty of sync engines:

Kyle Gill

@gill_kyle3855 Follower

Auf X besuchen

64.390 Aufrufe

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 local state 0ms changes.

12 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Kyle Gill

    @gill_kyle

    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

    31 Likes

  • Profilbild von Wonderchat

    @wonderchathq

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

    2.632 Likes

  • Profilbild von Zach McQuiston

    @ZachMcQ_

    But what if ✨everything was database ✨

    13 Likes

  • Profilbild von Kyle Gill

    @gill_kyle

    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

    6 Likes

  • Profilbild von jensen

    @karljensen

    Built this one with sqlsync Can try it at

    9 Likes

  • Profilbild von Kyle Gill

    @gill_kyle

    Will definitely look into it!

  • Profilbild von Blake Rouse

    @cblakerouse

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

    4 Likes

  • Profilbild von Kyle Gill

    @gill_kyle

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

    1 Like

  • Profilbild von Cruz

    @nvimcruz

    R u using zero

    1 Like

  • Profilbild von Kyle Gill

    @gill_kyle

    This is Electric + Tanstack optimistic

    16 Likes

  • Profilbild von whos your daddy

    @imyourdaddy_zzz

    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?

  • Profilbild von Kyle Gill

    @gill_kyle

    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.

    2 Likes