cainophile
integrate
cainophile | integrate | |
---|---|---|
2 | 1 | |
235 | 25 | |
1.7% | - | |
1.7 | 2.7 | |
3 months ago | over 3 years ago | |
Elixir | Elixir | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cainophile
-
How to Listen to Database Changes Using Postgres Triggers in Elixir
If you want to listen to database changes in Elixir you can also get really good stuff done by using Cainophile (https://github.com/cainophile/cainophile). Same mechanism. I don't know the details of Debezium so I can't say if you are leaving fantastic things on the table. But I've had good fun with Cainophile. For example I've used it in my videos on Electric SQL to react to changes in a Postgres database. It matches nicely with realtime-ish UI via LiveView. So meshes really good with the current Elixir stack.
-
Ask HN: Is there a way to subscribe to an SQL query for changes?
https://github.com/cainophile/cainophile
I happened to do a similar thing but I adapted cainophile into an Elixir “OffBroadway” producer:
integrate
-
Ask HN: Is there a way to subscribe to an SQL query for changes?
https://github.com/integratedb/integrate/blob/main/lib/integ...
These approaches rely on acking the WAL to confirm data has been processed. It’s simpler than running Debezium / Kafka for “zookept” CDC. However, they are “at least once” at best and it’s easy to shoot yourself in the foot so think twice before relying on this kind of thing for a real application.
Materialize is nice — TAIL is a lovely abstraction and their data ingest uses Debezium under the hood. That said, I believe their Postgres binlog source is still alpha / under active community dev.
What are some alternatives?
noria - Fast web applications through dynamic, partially-stateful dataflow
db_watch
supavisor - A cloud-native, multi-tenant Postgres connection pooler.
rethinkdb_rebirth - The open-source database for the realtime web.
timely-dataflow - A modular implementation of timely dataflow in Rust
PipelineDB - High-performance time-series aggregation for PostgreSQL
flow - 🌊 Continuously synchronize the systems where your data lives, to the systems where you _want_ it to live, with Estuary Flow. 🌊
revori - A revision-oriented DBMS
GRDB.swift - A toolkit for SQLite databases, with a focus on application development