News for hackers. Stuff that matters.
[dead]
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by Kinrany on Saturday November 07, 2026 @10:31PM (#50410188)
The write side on the client can't be transparent, can it?

Otherwise either write persistence is best-effort, writes don't work offline at all, or there is some kind of custom conflict resolution layer that guarantees that all writes will be accepted, like CRDTs

Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by ndrean on Sunday November 08, 2026 @06:41AM (#50412402)
Right, it isn’t transparent. Unlike a CRDT, not every write is guaranteed to be accepted. Every write is applied locally at once, durably queued, and sent to PostgreSQL when online. The guarantee is that no write is lost, and each one ends with an explicit verdict: accepted, or refused with the reason and rolled back locally.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by Kinrany on Sunday November 08, 2026 @06:38PM (#50418921)
What happens after the first write then? Is the whole sequence dropped as soon as one write is rejected?
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by satvikpendem on Saturday November 07, 2026 @11:27PM (#50410412)
Is this like ElectricSQL which was acquired recently?
[dead]
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by satvikpendem on Sunday November 08, 2026 @11:05AM (#50414410)
How do you handle syncing? Due to not many good options I resorted to putting a CRDT in my database on client and server side and then running their sync functions on every change but I wish Postgres had integrated CRDTs.
[dead]
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by satvikpendem on Sunday November 08, 2026 @06:28PM (#50418820)
Thanks. Yeah there's always LWW but modern CRDT libraries are way more advanced than that including intelligent merges so wondering if there was something closer to that in Postgres. By the way all your comments are showing up as dead which I have to vouch.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by ndrean on Tuesday November 10, 2026 @04:25AM (#50437914)
CRDT is useful when the application has a meaningful way to merge concurrent edits, if any. They don' replace database constraints or business rules. With LWW, you have a predictable winner when 2 devices replace the same value. Merging changes does not automatically preserve a unique realist: you need server validaation. LWW loses concurrent intents, but for many PG-backed applications, explicit/nderstandable conflict outcomes matters more than automatic edits preservation. BTW, what do you mean by dead comments?
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by satvikpendem on Wednesday November 11, 2026 @07:39AM (#50452707)
Your comments don't actually show up, they're all flagged by default. I think you're shadowbanned, maybe email [email protected] to get it sorted out.

And yes I know all about business rules, but for my apps I need CRDTs which work as required for my business logic. LWW is not sufficient for me.

Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by ndrean on Wednesday November 11, 2026 @08:03AM (#50452915)
I understand. I needed rules, so LWW like Cassandra covered probably 80% of use cases. Otherwise, it is like Electric, all left to you.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by ndrean on Thursday November 12, 2026 @03:47PM (#50474035)
FYI, I added CDRT support (the same as PowerSync) and an example. It is agnostic, so you bring in your prefered library. It is not optimal though, I don't clean Postgres. I will push this.
Re:ZeBridge – PostgreSQL replicas on devices, synchronized o... by satvikpendem on Thursday November 12, 2026 @08:11PM (#50476815)
Thanks I'll look into it.