frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Postgres LISTEN/NOTIFY actually scales

https://www.dbos.dev/blog/postgres-listen-notify-scalability
56•KraftyOne•1h ago

Comments

dietr1ch•48m ago
I recall that in the first release that supported LISTEN/NOTIFY there was a performance issue around it (poor locking IIRC), which today the "bad post" mentioned in here corrects in a errata just after their first paragraph.

Since the correction apparently dates from May 8th, I think that a post from July 24th might want to acknowledge that the popular post asserting this feature doesn't (didn't?) scale was not made in bad faith or was even wrong about their claims at the time.

Latty•43m ago
One way it explicitly doesn't scale (unless something has changed since I last checked and my quick search failed me) is the hard limit on 8000 bytes of data in a notification. If your notification doesn't make sense to exist as a row (where you can just give an ID), then that makes it hard to use. I had a web game and the events were transient descriptions of changes in state that didn't make sense to store in the database, and could be bigger than that, so it didn't work for that use case.
dietr1ch•26m ago
As an implementer of a scalable notification system I'd be sure to cap the notification size.

- Keeps messages O(1) so I can focus on scaling in the amount of notifications

- Tells whoever runs into this that,

    - I didn't planned for arbitrarily large messages as they *might* otherwise grind performance to a halt.
    - They *might* be misusing my notification system
jerf•32m ago
"Scale" isn't a binary, it's a continuum. "Scales to 60K/s" can be 5 orders of magnitude more than one system needs and 5 orders of magnitude too small for another. Personally I'd knock the general "premature optimization" off the list of "most common developer errors" and put in its place "using techs with the wrong scaling factors". If you use something too small and you exceed its needs, the failure is obvious, but the other way around is a problem too. Bringing in the overhead and management issues of the super scalable techs, as well as their limitations they impose so that they can scale, to a system that would actually be better off with a richer model whose richness prevents it from scaling but would save a lot of effort is also a bad choice.

The ceiling of LISTEN/NOTIFY is small enough that you need to pay attention, and I personally like to have at least an order of magnitude of slack left over even after my most pessimistic load numbers are accounted for, but it's still plenty for a lot of projects, and the integration with the rest of the DB, its availability, its not being another service you have to devops, it's definitely not something that should be simply dismissed out of hand as an option. Even the original 2K/s number they cite is a lot of messages for some systems that are more properly measured in seconds per message.

zbentley•18m ago
> 5 orders of magnitude too small for another.

Nitpick on an otherwise good post, but I don’t think there are very many 6billion RPS systems out there, and those that do exist are almost certainly using bespoke, purpose-built tools

nzoschke•32m ago
I continue to love DBOS for how it just leverages Postgres (and now SQLite) properly. It's effortless to drop into an existing CRUD stack.

Once you start down the "durable workflows" path, you start seeing them everywhere.

My latest experiments are treating individual emails as durable workflows, where you, the people you're communicating with, agents and tools like GitHub or Attio all take turns in the flow.

https://housecat.com/blog/gmail-durable-workflows-sandbox-vm

Claude Opus 5

https://www.anthropic.com/news/claude-opus-5
869•alvis•3h ago•483 comments

Nvidia, Microsoft, Meta warn against overregulating open-weight models

https://www.cnbc.com/2026/07/24/nvidia-microsoft-meta-open-weight-ai-models.html
250•louiereederson•6h ago•148 comments

Postgres LISTEN/NOTIFY actually scales

https://www.dbos.dev/blog/postgres-listen-notify-scalability
56•KraftyOne•1h ago•6 comments

My security camera shipped a GitHub admin token in its login page

https://hhh.hn/hanwha-github-token/
415•hhh•8h ago•153 comments

India's first privately-developed rocket reaches orbit on dramatic debut launch

https://arstechnica.com/space/2026/07/indias-first-privately-developed-rocket-reaches-orbit-on-dr...
372•sohkamyung•4d ago•106 comments

Fil-C: Garbage In, Memory Safety Out [video]

https://www.youtube.com/watch?v=5F-2Y1LPRek
39•Bootvis•1d ago•23 comments

Don't Take the Black Pill [video]

https://www.youtube.com/watch?v=zLZwpH5lCD4
44•signa11•3h ago•18 comments

I got into YC (Startup School) by hacking it

https://obaid.wtf/jotbook/2026/07/18/how-i-got-into-yc-by-hacking-it.html
68•speckx•2h ago•35 comments

Half-Life 2 running natively on HaikuOS

https://discuss.haiku-os.org/t/haiku-nvidia-porting-nvidia-driver-for-turing-gpus/16520?page=18
207•m0do1•7h ago•32 comments

Gsxui – Shadcn-style components for Go

https://ui.gsxhq.dev/
27•jackielii•2h ago•0 comments

Marimo Now Runs in PyCharm

https://marimo.io/blog/pycharm
10•cantdutchthis•2d ago•0 comments

Be skeptical of OpenAI's rogue hacker agent story

https://www.theguardian.com/technology/2026/jul/24/openai-rogue-hacker
274•rwmj•3h ago•128 comments

The hardest way to make a GIF

https://blog.willgrant.org/2026/07/23/the-hardest-way-to-make-gif.html
30•plaguna•13h ago•7 comments

Extending Polars with Rust Expression Plugins

https://fenic.ai/blog/extending-polars-with-rust-expression-plugins
29•cpard•2d ago•0 comments

The small, real, original web

https://spacetimetech.wordpress.com/2026/07/19/the-small-real-original-web/
26•speckx•2h ago•3 comments

It's getting harder to focus every day

https://glyphack.com/attention/
642•peykar•11h ago•360 comments

The front end framework for correctness: built on Effect, architected like Elm

https://foldkit.dev/
62•plucafs•4h ago•33 comments

Flux 3 X Mimic: The Next Generation of Video-Action Models

https://bfl.ai/blog/flux-3-mimic
292•kensai•10h ago•47 comments

DuckPGQ – A DuckDB community extension for graph workloads

https://duckpgq.org/
30•rzk•3h ago•4 comments

Unitree As2-W

https://www.unitree.com/As2-W/
51•MehrdadKhnzd•3h ago•23 comments

Flux 3

https://bfl.ai/blog/flux-3
535•ThouYS•13h ago•125 comments

The rise and fall of language diversity through the Holocene

https://www.science.org/doi/10.1126/science.adx4343
44•delichon•3h ago•4 comments

BGP ORIGIN attribute manipulation and its impact on the Internet

https://blog.cloudflare.com/bgp-origin-attribute/
17•sbulaev•2h ago•2 comments

Em dashes are amazing

https://psychotechnology.substack.com/p/em-dashes-are-fucking-amazing
301•surprisetalk•7h ago•263 comments

JEP 541: Deprecate the macOS/x64 Port for Removal

https://openjdk.org/jeps/541
89•pmg1991•3h ago•82 comments

Self-host your mail server

https://blog.haschek.at/2026/you-should-selfhost-your-mail.html
55•geek_at•1d ago•43 comments

Online Historical Encyclopaedia of Programming Languages

https://hopl.info/
20•gregsadetsky•3h ago•1 comments

Latest Airbus single aisle aircraft innovations

https://www.airbus.com/en/newsroom/stories/2026-07-how-the-a321xlr-is-redefining-single-aisle-com...
46•r2sk5t•3d ago•77 comments

Codeberg Divides

https://lucumr.pocoo.org/2026/7/24/codeberg-divides/
85•ashdnazg•5h ago•104 comments

Reporting Web 3D Capabilities on a Budget of $3 a Month

https://ben3d.ca/blog/reporting-web-3d-capabilities-on-a-budget
7•bhouston•4d ago•0 comments