HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
agoodway
walex
Elixir2021–2026
agoodway / walex

walex

Postgres change events (CDC) in Elixir [WAL]

3Distinct people
35Mentions
0Explicit recommenders
370GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Postgres change events (CDC) in Elixir [WAL]

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 9–Nov 16 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/16/2026, 8:59:02 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year35 dated mentions

Observed mentions: 2021-12-18 13:06:51 UTC to 2026-05-06 18:51:02 UTC.

0369122021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20212022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 6 mentions; 0 submissions, 6 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 11 mentions; 0 submissions, 11 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 11 mentions; 0 submissions, 11 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC606
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC11011
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC11011
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC505
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC101

What Hacker News says

11 sources
What we do is much of the business logic in Postgres (triggers, constraints, etc). But then there’s all the other stuff like external integrations, etc. We handled that by having an event system built on the Postgres WAL that we use like a callback system. I put together a little library in Elixir (that originally started out as forked Supabase realtime) for this: https://github.com/cpursley/walex Recently added the ability to configure WalEx to forward events to webhooks or EventRelay (so you don’t need to know Elixir).
In Fly Postgres, Managed by Supabase
If you're using Elixir, check out https://github.com/cpursley/walex I've actually been thinking about turning this idea into a product where you can just point it at your postgres database and select the tables you want to listen to (with filters, like you describe). And have that forwarded to a webhook (with possibility of other protocols like websockets). I'd love to hear folks thoughts on that (and if it would be something people would pay for). And if anyone might want to partner up on this.
In Ways to capture changes in Postgres
Neat, this is the pattern I've been thinking about for a while now. Also glad to see this is Elixir based and that Jose is involved. I've been using https://github.com/cpursley/walex (basically a fork of cainophile via a fork for subabase) to listen to Postgres changes in Elixir. Sequin is also doing some neat stuff in this space as well: https://blog.sequin.io/all-the-ways-to-capture-changes-in-po...
In Show HN: ElectricSQL, Postgres to SQLite active-active sync for local-first apps
This was a fun read! It reminds me of a very similar post I put out in 2018 https://by.ben.church/Get-notified-of-user-signups-and-plan-... But I think Peter did a much better job going through the mechanics and providing a more modernized example. For those that are curious there are pitfalls (that can be worked around) 1. If your DB goes down you may loose messages 2. If you have multiple backends behind a load balancer you may trigger additional events 3. There is a limit to the payload size you can send through these triggers But for those that want to try this approach I do have a library here that does wraps everything Peter layed out: https://github.com/bnchrch/postgrex_pubsub Also if you want something even better I recommend WalEx https://github.com/cpursley/walex Which is based on WAL logs and doesnt have the same limitations.
In How to listen to database changes using Postgres triggers in elixir

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.