Zum Hauptinhalt springen
Artikelansicht
⚡ iShareStuff Live

moritz: introducing pgreflex - an open source convex alternative for postgres

Author: media.ccc.de - Bewertung: 2x - Views:56 https://media.ccc.de/v/gpn24-659-introducing-pgreflex-an-open-source-convex-alternative-for-postgres Convex is…

Beitrag
0
Seite
0
↗ Quelle (youtube.com)
Quelle & Fakten · 2 Min. Lesezeit
Quelle: youtube.com
Rubrik: IT Sicherheit

Author: media.ccc.de - Bewertung: 2x - Views:56

https://media.ccc.de/v/gpn24-659-introducing-pgreflex-an-open-source-convex-alternative-for-postgres



Convex is a TypeScript framework* that makes one promise: "if you change a value in the database, no matter how, it'll update in the frontend automatically."



This is great - imagine writing a comment, and everyone with the page open sees it immideately. If you imagine the normal todo-list example for webdev, you checkmark a task in one tab, and it immediately updates for everyone.



However, despite being open-source, convex is developed by a VC-backed company, and runs on a properitary database - you can only interface with it through their properitary libraries. Simple functions like COUNT aren't supported, and require hacky workarounds. You can't write a simple UPDATE statement. Migrations and schemas are loosely enforced.



All of these restrictions led to me writing pgreflex - a fully free + open-source, community-driven postgres-based alternative. Instead of writing a custom database, pgreflex simply subscribes to postgres' write-ahead-log (WAL) via logical replication - and notifies the app server if something changed. No properitary lock-in, and only a simple, thin library you can use with your existing stack.



* Note: Even for people who can't immediately use pgreflex (not writing TypeScript servers, ...) the underlying tech of "listen to WAL to invalidate queries and propagate changes" is powerful. I promise this talk could be useful if you write rust webapps, too. Or Go webapps. Or python. Or anything, really. It probably could work with mysql, too.



In the talk, we'll cover:



- Why doing what convex allows you do to is *really cool* from a UX perspective

- How does pgreflex work (subscribe to WAL, invalidate)

- Challenges and drawbacks of the approach, incl. complexity, latency, and computational overhead

- How would you use it off-the-shelf in a TypeScript + tRPC + drizzle project

- How other programming languages might implement the same



Maybe: a couple of benchmarks (pgreflex vs. convex on same server), if I manage to finish those before GPN



Community contributions welcome :)



moritz



https://cfp.gulas.ch/gpn24/talk/EGXV8L/



#gpn24 #SoftwareandInfrastructure



Licensed to the public under https://creativecommons.org/licenses/by/4.0/

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community-Diskussion & Kommentare

🌐 Zum Social-Chat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „✏️ Information ergänzen“ einen Fachbeitrag ein.

Tages-Briefing Kostenlos · 1-Klick-Abmeldung

Nachrichten-Briefing — kostenlos

Täglich die wichtigsten Meldungen aus Politik & Gesellschaft · jederzeit abbestellbar

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität

Verwandte Story-Cluster & Quellen (Vektor-KI)

4 Cluster
3 Quellen
Bei Langenfeld: Mehrere Verletzte nach Unfall auf der A3 - RP Online
Top-Meldungen - Google News vor 12 Std.
2 weitere Quellen
2 Quellen
Goldpreis-Prognose: Gold und Goldminenaktien im Panik-Modus. Jetzt schon kaufen? - wallstreetONLINE
Top-Meldungen - Google News vor 1 Tag
1 weitere Quelle
2 Quellen
Thalia Theater Hamburg: Borcherts Antikriegsklassiker als aufgedrehte Revue - Spiegel
Top-Meldungen - Google News vor 9 Std.
1 weitere Quelle
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten moritz: introducing pgreflex - an open source convex alternative for postgres

Thematisch verwandte Begriffe: moritz, introducing, pgreflex, open · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag