Replies: 1 comment
-
|
Friendly ping. Still curious to learn what electric and others do when SSE events get lost. Meanwhile, I've added WebSocket support to TrailBase, which at least let's clients explicitly handle disconnects. Now I'm wondering if there's maybe a way to reset TanStack/DBs internal state machine to "initializaing" (similar to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(context: TrailBase maintainer here)
I was recently thinking a bit more about providing stronger guarantees in the light of "event loss". The TrailBase integration is pretty naive, uses SSE and if it gets auto-reconnected state would likely diverge.
To my understanding electric also uses SSE (https://electric-sql.com/docs/api/http#server-sent-events-sse), which is generally pretty opaque when it comes to managing connection state. After taking a quick look at its current implementation, it's not clear to me if there's maybe some magic happening under the hood (e.g. invalidate and re-build state from scratch if sequence numbers get out of sync 🤷♀️). Does electric's integration offer any guarantees?
I was mostly wondering what the official stance is for:
Beta Was this translation helpful? Give feedback.
All reactions