Login
You're viewing the ruby.social public feed.
  • Sep 2, 2026, 10:44 AM

    When I was advocating for nogil/free-threading, I always said that it’s important not to judge threads by the APIs we have, but by the APIs we will build once they’re worth the trouble.

    Here’s my first contribution: a way to run fault-tolerant background threads with PostgreSQL-based¹ orchestration: lease-based leader election & NOTIFY dispatch.

    Hope you like it—it fell out of 2 other projects I want to open-source eventually.

    ¹ requires @psycopg, SQLAlchemy optional

    github.com/hynek/pgbg

    💬 3🔄 4⭐ 6

Replies